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

[40790] Deal with missing menu_identifier

Oliver Günther091b628f4f32
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index 0ab7122a4b5..3bac919cc30 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -346,7 +346,7 @@ class WikiController < ApplicationController
menu_item.menu_identifier
elsif page.present?
menu_item = default_menu_item(page)
- "no-menu-item-#{menu_item.menu_identifier}".to_sym
+ "no-menu-item-#{menu_item&.menu_identifier || 'unknown'}".to_sym
end
end