diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-08-18 06:46:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-08-18 06:46:49 +0000 |
commit | b5af1cb23514e905ba26f74944df709c97e96b3e (patch) | |
tree | a598ec964289cd6fa0effd53f3e5b13b27587b05 /app/models/project.rb | |
parent | a6c0e0e886cb70cd7db3fc50cbf42359eb18eff6 (diff) | |
download | redmine-b5af1cb23514e905ba26f74944df709c97e96b3e.tar.gz redmine-b5af1cb23514e905ba26f74944df709c97e96b3e.zip |
Project.copy_from deletes enabled_modules on source (#20512).
Fix by Ondřej Ezr.
git-svn-id: http://svn.redmine.org/redmine/trunk@14508 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 81bb17991..62db1854f 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -751,7 +751,7 @@ class Project < ActiveRecord::Base # clear unique attributes attributes = project.attributes.dup.except('id', 'name', 'identifier', 'status', 'parent_id', 'lft', 'rgt') copy = Project.new(attributes) - copy.enabled_modules = project.enabled_modules + copy.enabled_module_names = project.enabled_module_names copy.trackers = project.trackers copy.custom_values = project.custom_values.collect {|v| v.clone} copy.issue_custom_fields = project.issue_custom_fields |