Fixed: no email sent with 'Notifiy for any event on the selected projects only' (#7421).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4761 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-01-24 17:28:59 +00:00
parent a2a01e6b72
commit 73a2d926f6
2 changed files with 23 additions and 1 deletions
+6 -1
View File
@@ -424,7 +424,12 @@ class User < Principal
when 'all'
true
when 'selected'
# Handled by the Project
# user receives notifications for created/assigned issues on unselected projects
if object.is_a?(Issue) && (object.author == self || object.assigned_to == self)
true
else
false
end
when 'none'
false
when 'only_my_events'