Fixed: validation error on issue creation when trying to add an invalid user as a watcher (#5373).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5880 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-05-22 10:30:26 +00:00
parent 1b4a5e5aff
commit ef00501c36
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ module Redmine
class_eval do
has_many :watchers, :as => :watchable, :dependent => :delete_all
has_many :watcher_users, :through => :watchers, :source => :user
has_many :watcher_users, :through => :watchers, :source => :user, :validate => false
named_scope :watched_by, lambda { |user_id|
{ :include => :watchers,