Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Don't output anything to remain compatible with <%= error_message_for xyz %>

Oliver Günther13cb707ff1ee
diff --git a/app/helpers/error_message_helper.rb b/app/helpers/error_message_helper.rb
index cbff1ba5c0a..c35ec8865d8 100644
--- a/app/helpers/error_message_helper.rb
+++ b/app/helpers/error_message_helper.rb
@@ -35,6 +35,9 @@ module ErrorMessageHelper
return unless object
assign_flash_error(object.errors, object)
+
+ # Don't output anything for compability
+ nil
end
def assign_flash_error(errors, object)