From: Jean-Philippe Lang Date: Mon, 14 Jul 2014 16:21:17 +0000 (+0000) Subject: WARNING: Can't mass-assign protected attributes: user_id, type. X-Git-Tag: 2.6.0~87 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2a4fdf6755b9ac9e6203aa22681d7faff36b2b64;p=redmine.git 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 --- 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