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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Merge branch 'dev' into implementation/50737-convert-new-storage-page-to-primer-design
Kabiru Mwenjae77d7ebeadb6
diff --cc modules/storages/app/controllers/storages/admin/storages_controller.rbindex c2c125f9442,639b723b75a..7fa853d82af--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb@@@ -41,9 -41,7 +41,8 @@@ class Storages::Admin::StoragesControll# Before executing any action below: Make sure the current user is an admin# and set the @<controller_name> variable to the object referenced in the URL.before_action :require_admin- before_action :find_model_object, only: %i[show destroy edit edit_host update replace_oauth_application]+ before_action :find_model_object,+ only: %i[show show_oauth_application destroy edit edit_host update replace_oauth_application]- before_action :prepare_update_params, only: %i[update]# menu_item is defined in the Redmine::MenuManager::MenuController# module, included from ApplicationController.@@@ -150,10 -110,10 +149,10 @@@# Update is similar to create above# See also: create above# Called by: Global app/config/routes.rb to serve Web page- def update+ def update # rubocop:disable Metrics/AbcSizeservice_result = ::Storages::Storages::UpdateService.new(user: current_user, model: @storage)- .call(@storage_params)+ .call(permitted_storage_params)@storage = service_result.resultif service_result.success?