diff --git a/app/helpers/opportunities_helper.rb b/app/helpers/opportunities_helper.rb index 8ff2ba4e6..c73ec7670 100644 --- a/app/helpers/opportunities_helper.rb +++ b/app/helpers/opportunities_helper.rb @@ -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.