summaryrefslogtreecommitdiff
path: root/app/controllers/voicemail_settings_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/voicemail_settings_controller.rb')
-rw-r--r--app/controllers/voicemail_settings_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/voicemail_settings_controller.rb b/app/controllers/voicemail_settings_controller.rb
index f270c3d..ca3ae86 100644
--- a/app/controllers/voicemail_settings_controller.rb
+++ b/app/controllers/voicemail_settings_controller.rb
@@ -42,6 +42,9 @@ class VoicemailSettingsController < ApplicationController
@voicemail_setting = @voicemail_account.voicemail_settings.find(params[:id])
@input_type = VoicemailSetting::VOICEMAIL_SETTINGS.fetch(@voicemail_setting.name,{}).fetch(:input, 'String')
@input_html = VoicemailSetting::VOICEMAIL_SETTINGS.fetch(@voicemail_setting.name,{}).fetch(:html, {})
+ if @input_type == :boolean && @voicemail_setting.value == 'true'
+ @input_html[:checked] = true
+ end
end
def update