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

[#43487] Show better error for dependent result for StoragesController Create action

Andreas Pfohld6137ef05179
diff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rb
index 3c45b26c336..34c101c0220 100644
--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb
+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb
@@ -88,10 +88,7 @@ class Storages::Admin::StoragesController < ApplicationController
flash[:notice] = I18n.t(:notice_successful_create)
render :show_oauth_application
else
- @errors = service_result.all_errors.reduce(ActiveModel::Errors.new(@object)) do |errors, e|
- errors.merge!(e)
- errors
- end
+ @errors = service_result.errors
render :new
end
end