Commit a4932d2d authored by http://jneen.net/'s avatar http://jneen.net/

don't elevate to :watch if no @custom_action is provided

parent b69e81c3
......@@ -52,7 +52,7 @@ class NotificationRecipientService
@notification_level ||=
case raw_notification_level
when :custom
if !@custom_action || notification_setting.event_enabled?(@custom_action)
if @custom_action && notification_setting.event_enabled?(@custom_action)
:watch
else
:custom
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment