summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index afb0ee0c5..deb497484 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -723,9 +723,10 @@ class Project < ActiveRecord::Base
end
Redmine::Hook.call_hook(:model_project_copy_before_save, :source_project => project, :destination_project => self)
save
+ else
+ false
end
end
- true
end
# Returns a new unsaved Project instance with attributes copied from +project+