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

make projects group menu item lead to project lifecycle instead of project attributes

Ivan Kuchin9ef71c3ff54f
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index 0509c2cd88c..cd9df6ba02b 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -336,7 +336,13 @@ Redmine::MenuManager.map :admin_menu do |menu|
parent: :admin_work_packages
menu.push :admin_projects_settings,
- { controller: "/admin/settings/project_custom_fields", action: :index },
+ Proc.new { # TODO: doesn't need to be a proc when condition is removed
+ if OpenProject::FeatureDecisions.stages_and_gates_active?
+ { controller: "/admin/settings/project_life_cycle_step_definitions", action: :index }
+ else
+ { controller: "/admin/settings/project_custom_fields", action: :index }
+ end
+ },
if: Proc.new { User.current.admin? },
caption: :label_project_plural,
icon: "project"