Fixing project copy #546

This commit is contained in:
Karel Picman 2016-07-19 11:54:16 +02:00
parent 38676e63d7
commit 94c93e8569

View File

@ -67,7 +67,7 @@ module RedmineDmsf
project = project.is_a?(Project) ? project : Project.find(project)
to_be_copied = %w(dmsf approval_workflows)
to_be_copied = to_be_copied & options[:only].to_a if options[:only].present?
to_be_copied = to_be_copied & Array.wrap(options[:only]) unless options[:only].nil?
if save
to_be_copied.each do |name|