summaryrefslogtreecommitdiffstats
path: root/app/helpers/settings_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/settings_helper.rb')
-rw-r--r--app/helpers/settings_helper.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb
index fad1698ea..d615235b7 100644
--- a/app/helpers/settings_helper.rb
+++ b/app/helpers/settings_helper.rb
@@ -110,9 +110,12 @@ module SettingsHelper
# Renders a notification field for a Redmine::Notifiable option
def notification_field(notifiable)
- tag_data = notifiable.parent.present? ?
- {:parent_notifiable => notifiable.parent} :
- {:disables => "input[data-parent-notifiable=#{notifiable.name}]"}
+ tag_data =
+ if notifiable.parent.present?
+ {:parent_notifiable => notifiable.parent}
+ else
+ {:disables => "input[data-parent-notifiable=#{notifiable.name}]"}
+ end
tag = check_box_tag('settings[notified_events][]',
notifiable.name,
setting_value('notified_events').include?(notifiable.name),