mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 19:57:03 +02:00
Selected projects in email notifications on "my account" are lost when the page is redisplayed after a validation error (#18060).
Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@13638 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -368,7 +368,7 @@ class User < Principal
|
||||
|
||||
def notified_project_ids=(ids)
|
||||
@notified_projects_ids_changed = true
|
||||
@notified_projects_ids = ids
|
||||
@notified_projects_ids = ids.map(&:to_i).uniq.select {|n| n > 0}
|
||||
end
|
||||
|
||||
# Updates per project notifications (after_save callback)
|
||||
|
||||
Reference in New Issue
Block a user