mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-10 01:21:32 +00:00
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
This commit is contained in:
parent
9f7901e364
commit
2a4fdf6755
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user