diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-11 17:33:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-11 17:33:02 +0000 |
commit | 3da92d7da7a25b39ccf171ef350277e599f2f785 (patch) | |
tree | 9f5871c25cb2115de8369f7ebce56fe31d84012d /app | |
parent | c63ab52201dc6b887a4ea129896f2c856c9b8658 (diff) | |
download | redmine-3da92d7da7a25b39ccf171ef350277e599f2f785.tar.gz redmine-3da92d7da7a25b39ccf171ef350277e599f2f785.zip |
Fixed: copied private queries not visible after project copy (#9520).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7782 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index a2626f130..dcfe8fdbb 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -810,6 +810,7 @@ class Project < ActiveRecord::Base new_query.attributes = query.attributes.dup.except("id", "project_id", "sort_criteria") new_query.sort_criteria = query.sort_criteria if query.sort_criteria new_query.project = self + new_query.user_id = query.user_id self.queries << new_query end end |