Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Call tool form fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrei committed May 29, 2017
1 parent d9d977d commit 4f96826
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/controllers/plugins/call_tools_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/plugins/call_tools/_form.slim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f96826

Please sign in to comment.