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

chore[Op#54456]: Undo changes to before actions

Kabiru Mwenja377e2505a7e2
diff --git a/app/controllers/admin/settings/project_custom_fields_controller.rb b/app/controllers/admin/settings/project_custom_fields_controller.rb
index 256c7efb2f6..9c40f82144a 100644
--- a/app/controllers/admin/settings/project_custom_fields_controller.rb
+++ b/app/controllers/admin/settings/project_custom_fields_controller.rb
@@ -34,8 +34,11 @@ module Admin::Settings
menu_item :project_custom_fields_settings
- before_action :set_sections, only: %i[show index edit move drop]
- before_action :find_custom_field, only: %i[show edit project_mappings unlink destroy move drop]
+ before_action :set_sections, only: %i[show index edit update move drop]
+ before_action :find_custom_field,
+ only: %i(show edit project_mappings unlink update destroy delete_option reorder_alphabetical move drop)
+ before_action :prepare_custom_option_position, only: %i(update create)
+ before_action :find_custom_option, only: :delete_option
def show_local_breadcrumb
false