diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-06 17:34:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-06 17:34:45 +0000 |
commit | 1cd985dd6b2a674b632be0d490f6f5070e35591d (patch) | |
tree | 7c8ac28f617888b721154df5e3a8876bc4a2b7e2 /app/models | |
parent | 8ea86a8249463e3d848e0490228da63b40d2d0bb (diff) | |
download | redmine-1cd985dd6b2a674b632be0d490f6f5070e35591d.tar.gz redmine-1cd985dd6b2a674b632be0d490f6f5070e35591d.zip |
Option to copy watchers when copying issues (#10460).
git-svn-id: http://svn.redmine.org/redmine/trunk@16509 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/issue.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index f08e73d24..fc96e909c 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -276,6 +276,9 @@ class Issue < ActiveRecord::Base attachement.copy(:container => self) end end + unless options[:watchers] == false + self.watcher_user_ids = issue.watcher_user_ids.dup + end @copied_from = issue @copy_options = options self |