diff --git a/app/helpers/project_settings_helper.rb b/app/helpers/project_settings_helper.rb index 15f4310a0e..1d314c59f9 100644 --- a/app/helpers/project_settings_helper.rb +++ b/app/helpers/project_settings_helper.rb @@ -60,7 +60,8 @@ module ProjectSettingsHelper { name: 'categories', action: { controller: '/project_settings/categories', action: 'show' }, - label: :label_work_package_category_plural + label: :label_work_package_category_plural, + last: true }, { name: 'repository', diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb index 679a9da265..712fc81f48 100644 --- a/config/initializers/menus.rb +++ b/config/initializers/menus.rb @@ -372,6 +372,7 @@ Redmine::MenuManager.map :project_menu do |menu| node[:action], caption: node[:label], parent: :settings, + last: node[:last], if: node[:if] end end diff --git a/modules/backlogs/lib/open_project/backlogs/patches/project_settings_helper_patch.rb b/modules/backlogs/lib/open_project/backlogs/patches/project_settings_helper_patch.rb index fff388f9f8..04abd2f522 100644 --- a/modules/backlogs/lib/open_project/backlogs/patches/project_settings_helper_patch.rb +++ b/modules/backlogs/lib/open_project/backlogs/patches/project_settings_helper_patch.rb @@ -38,7 +38,7 @@ module OpenProject::Backlogs::Patches::ProjectSettingsHelperPatch settings << { name: :backlogs, action: { controller: '/backlogs_settings', action: 'show' }, - label: :'backlogs.backlog_settings', + label: :label_backlogs, if: ->(p) { p.module_enabled?('backlogs') } } end