From 94c93e85691c946801878a6237e90e6c0183771b Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Tue, 19 Jul 2016 11:54:16 +0200 Subject: [PATCH] Fixing project copy #546 --- lib/redmine_dmsf/patches/project_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_dmsf/patches/project_patch.rb b/lib/redmine_dmsf/patches/project_patch.rb index 0e387417..cae7be20 100644 --- a/lib/redmine_dmsf/patches/project_patch.rb +++ b/lib/redmine_dmsf/patches/project_patch.rb @@ -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|