diff --git a/app/controllers/plugins/call_tools_controller.rb b/app/controllers/plugins/call_tools_controller.rb index 4ae0053bc..d07e32910 100644 --- a/app/controllers/plugins/call_tools_controller.rb +++ b/app/controllers/plugins/call_tools_controller.rb @@ -33,7 +33,9 @@ def delete_sound_clip private def update_params - params.require(:plugins_call_tool).permit(:targets_csv_file, :active, :title, :sound_clip, :description) + params.require(:plugins_call_tool).permit( + :targets_csv_file, :active, :title, :sound_clip, :description, :caller_phone_number_id + ) end def targets_params diff --git a/app/views/plugins/call_tools/_form.slim b/app/views/plugins/call_tools/_form.slim index 73bfc3518..235765add 100644 --- a/app/views/plugins/call_tools/_form.slim +++ b/app/views/plugins/call_tools/_form.slim @@ -16,7 +16,7 @@ = label_with_tooltip(f, :caller_phone_number_id, t('plugins.call_tool.caller_id'), t('tooltips.call_tool.caller_id')) = f.select :caller_phone_number_id, PhoneNumber.all.map { |p| ["#{p.country} #{p.number}", p.id] }, - {}, + {include_blank: true}, class: 'form-control restricted_country_code' .form-group