Send notification emails when someone comments on a map bug report

This commit is contained in:
Kai Krueger 2011-04-27 12:01:52 -06:00
parent 3b55494c8c
commit b3d62bb85a
4 changed files with 53 additions and 1 deletions

View file

@ -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