Project

General

Profile

mail notification per tracker?

Added by Sungje hong about 9 years ago

for just test.

I don't want to send email notification if a specific tracker item is added or edited(updated?).

When Issue added, I do not send email as modify issue.rb as following.
But when Issue edited(updated?), i can't.
How can i do?

issue.rb line 1553, def send_notification

if self.tracker.id == 1 || self.tracker.id == 2   <- Added
  if Setting.notified_events.include?('issue_added')
    Mailer.deliver_issue_add(self)
  end
end

And I would like to write a variable value in production.log. How can i do?