summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-14 16:21:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-14 16:21:17 +0000
commit2a4fdf6755b9ac9e6203aa22681d7faff36b2b64 (patch)
treee4dbe00bdf7ae3cd7dcbe7639229e642e7125413
parent9f7901e3642bbeb2bf3b5feaefaa10157b111732 (diff)
downloadredmine-2a4fdf6755b9ac9e6203aa22681d7faff36b2b64.tar.gz
redmine-2a4fdf6755b9ac9e6203aa22681d7faff36b2b64.zip
WARNING: Can't mass-assign protected attributes: user_id, type.
git-svn-id: http://svn.redmine.org/redmine/trunk@13330 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index a146a344a..96de85517 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -948,7 +948,7 @@ class Project < ActiveRecord::Base
def copy_queries(project)
project.queries.each do |query|
new_query = IssueQuery.new
- new_query.attributes = query.attributes.dup.except("id", "project_id", "sort_criteria")
+ new_query.attributes = query.attributes.dup.except("id", "project_id", "sort_criteria", "user_id", "type")
new_query.sort_criteria = query.sort_criteria if query.sort_criteria
new_query.project = self
new_query.user_id = query.user_id