Skip to content

Commit

Permalink
Fix Opportunities Campaign selection auto complete
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleylhs committed Aug 22, 2024
1 parent 2ce77c4 commit 989eb48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/helpers/opportunities_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def opportunity_campaign_select(options = {})
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) },
style: 'width:330px;', class: 'select2'
style: 'width:330px;', class: 'select2',
placeholder: t(:select_a_campaign),
"data-url": auto_complete_campaigns_path(format: 'json')
end

# Generates the inline revenue message for the opportunity list table.
Expand Down

0 comments on commit 989eb48

Please sign in to comment.