Skip to content

Commit

Permalink
Fixed broken 'clear' button on Select2 Campaign select widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Aug 23, 2024
1 parent 989eb48 commit 339b9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/opportunities_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def opportunity_campaign_select(options = {})
selected_campaign = Campaign.find_by_id(options[:selected])
campaigns = ([selected_campaign] + Campaign.my(current_user).order(:name).limit(25)).compact.uniq
collection_select :opportunity, :campaign_id, campaigns, :id, :name,
{ selected: options[:selected], prompt: t(:select_a_campaign) },
{ selected: options[:selected], prompt: t(:select_a_campaign), include_blank: true },
style: 'width:330px;', class: 'select2',
placeholder: t(:select_a_campaign),
"data-url": auto_complete_campaigns_path(format: 'json')
Expand Down

0 comments on commit 339b9b9

Please sign in to comment.