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

Fixed naming issues for StorageController

Andreas Pfohl2c1fbad1d76a
diff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rb
index acff8804ba9..4b2f326e4f0 100644
--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb
+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb
@@ -42,7 +42,7 @@ class Storages::Admin::StoragesController < ApplicationController
# 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 update replace_oauth_application]
- before_action :parse_drive_id, only: %i[update]
+ before_action :prepare_update_params, only: %i[update]
# menu_item is defined in the Redmine::MenuManager::MenuController
# module, included from ApplicationController.
@@ -172,7 +172,7 @@ class Storages::Admin::StoragesController < ApplicationController
private
- def parse_drive_id
+ def prepare_update_params
@storage_params = permitted_storage_params
if @storage.provider_type_one_drive? && @storage.drive_id.nil?
diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.yml
index 9b121d47920..0e314b3d629 100644
--- a/modules/storages/config/locales/en.yml
+++ b/modules/storages/config/locales/en.yml
@@ -129,7 +129,7 @@ en:
tenant_id: >
Please insert the tenant ID you got from your SharePoint administrator.
drive_id: >
- The drive ID can be obtained by you SharePoint Administrator.
+ The drive ID can be obtained by you SharePoint administrator.
help_texts:
project_folder: >
The project folder is the default folder for file uploads for this project.