Send #issue_assign_notification on create
This commit is contained in:
parent
828ddc540f
commit
5f3cac5532
|
@ -34,8 +34,7 @@ module Modules::Observers::ActivityFeed::Issue
|
||||||
def send_assign_notifications(action = :create)
|
def send_assign_notifications(action = :create)
|
||||||
if assignee_id && assignee_id_changed?
|
if assignee_id && assignee_id_changed?
|
||||||
if assignee.notifier.issue_assign && assignee.notifier.can_notify
|
if assignee.notifier.issue_assign && assignee.notifier.can_notify
|
||||||
user_mailer_action = action == :create ? :new_issue_notification : :issue_assign_notification
|
UserMailer.issue_assign_notification(self, assignee).deliver
|
||||||
UserMailer.send(user_mailer_action, self, assignee).deliver
|
|
||||||
end
|
end
|
||||||
ActivityFeed.create(
|
ActivityFeed.create(
|
||||||
:user => assignee,
|
:user => assignee,
|
||||||
|
|
Loading…
Reference in New Issue