Send notification emails when someone comments on a map bug report
This commit is contained in:
parent
3b55494c8c
commit
b3d62bb85a
4 changed files with 53 additions and 1 deletions
|
@ -311,7 +311,18 @@ private
|
|||
end
|
||||
bug_comment.save;
|
||||
bug.last_changed = t
|
||||
bug.save
|
||||
bug.save
|
||||
|
||||
sent_to = Set.new;
|
||||
bug.map_bug_comment.each do | cmt |
|
||||
if cmt.user
|
||||
unless sent_to.include?(cmt.user)
|
||||
Notifier.deliver_bug_comment_notification(bug_comment, cmt.user) unless cmt.user == @user;
|
||||
sent_to.add(cmt.user);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue