From 3f16574dd302b462eff00e8891d4116a22f42482 Mon Sep 17 00:00:00 2001 From: Liane Hampe Date: Fri, 19 Feb 2021 11:15:14 +0100 Subject: [PATCH] Change ProjectPatch#copy The RedmineDmsf::Patches::ProjectPatch#copy method override misses to return a final false. This missing boolean of false cause a Redmine core test to fail. This little change fixes the failing core test: ProjectCopyTest#test_copy_should_return_false_if_save_fails. --- lib/redmine_dmsf/patches/project_patch.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/redmine_dmsf/patches/project_patch.rb b/lib/redmine_dmsf/patches/project_patch.rb index 6dc0195e..9ddf7714 100644 --- a/lib/redmine_dmsf/patches/project_patch.rb +++ b/lib/redmine_dmsf/patches/project_patch.rb @@ -39,6 +39,8 @@ module RedmineDmsf send "copy_#{name}", project end save + else + false end end