summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-25 10:51:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-25 10:51:21 +0000
commita18676b6693356f3cea4786e3280149ecfd3f7e6 (patch)
tree43174f19fca2e967b7af8192978b3dedbfa60885
parent4e73685af7fa45723ccc26c2692cac668835bda3 (diff)
downloadredmine-a18676b6693356f3cea4786e3280149ecfd3f7e6.tar.gz
redmine-a18676b6693356f3cea4786e3280149ecfd3f7e6.zip
Prevent mass-assignment warnings.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2973 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 8b591a68c..7b9080833 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -431,7 +431,7 @@ class Project < ActiveRecord::Base
project = project.is_a?(Project) ? project : Project.find(project)
if project
# clear unique attributes
- attributes = project.attributes.dup.except('name', 'identifier', 'id', 'status')
+ attributes = project.attributes.dup.except('id', 'name', 'identifier', 'status', 'parent_id', 'lft', 'rgt')
copy = Project.new(attributes)
copy.enabled_modules = project.enabled_modules
copy.trackers = project.trackers