diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-05-22 10:30:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-05-22 10:30:26 +0000 |
commit | ef00501c36992221a1afa5f5bd4706ed91fbb7f1 (patch) | |
tree | 81baa55ee9cfc1283e6fe685be386c255bd88baa /vendor | |
parent | 1b4a5e5aff16d42ff330ff23abd39e197398959a (diff) | |
download | redmine-ef00501c36992221a1afa5f5bd4706ed91fbb7f1.tar.gz redmine-ef00501c36992221a1afa5f5bd4706ed91fbb7f1.zip |
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
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb b/vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb index a22098eec..e9c0eb3e6 100644 --- a/vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb +++ b/vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb @@ -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, |