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

use new method to get erroring attributes

ulferts38b783879a77
diff --git a/lib/api/errors/error_base.rb b/lib/api/errors/error_base.rb
index 2b4697cd17c..f5b2a717391 100644
--- a/lib/api/errors/error_base.rb
+++ b/lib/api/errors/error_base.rb
@@ -85,7 +85,7 @@ module API
def convert_ar_to_api_errors(errors)
api_errors = []
- errors.keys.each do |attribute|
+ errors.attribute_names.each do |attribute|
api_attribute_name = ::API::Utilities::PropertyNameConverter.from_ar_name(attribute)
errors.symbols_and_messages_for(attribute).each do |symbol, message|