summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-14 16:20:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-14 16:20:44 +0000
commit9f7901e3642bbeb2bf3b5feaefaa10157b111732 (patch)
treedf869bd2eaae5c8055a9fda3095a088c80535a11 /app
parent58c5c29c1faf12d0f4670966220ef74277d98ecb (diff)
downloadredmine-9f7901e3642bbeb2bf3b5feaefaa10157b111732.tar.gz
redmine-9f7901e3642bbeb2bf3b5feaefaa10157b111732.zip
Fixed that query roles are not copied when copying a project (#17202).
git-svn-id: http://svn.redmine.org/redmine/trunk@13329 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 6ced34565..a146a344a 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -952,6 +952,7 @@ class Project < ActiveRecord::Base
new_query.sort_criteria = query.sort_criteria if query.sort_criteria
new_query.project = self
new_query.user_id = query.user_id
+ new_query.role_ids = query.role_ids if query.visibility == IssueQuery::VISIBILITY_ROLES
self.queries << new_query
end
end