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

[#51279] Fix breadcrumb for editing custom fields is missing

Dominic Bräunlein11f0b35c40c3
diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb
index 5dc8dde4206..b519c9200be 100644
--- a/app/helpers/breadcrumb_helper.rb
+++ b/app/helpers/breadcrumb_helper.rb
@@ -28,9 +28,8 @@
module BreadcrumbHelper
def full_breadcrumbs
- items = breadcrumb_paths.compact
- render(Primer::Beta::Breadcrumbs.new(test_selector: "op-breadcrumb" )) do |breadcrumbs|
- items.each_with_index do |item, index|
+ render(Primer::Beta::Breadcrumbs.new(test_selector: "op-breadcrumb")) do |breadcrumbs|
+ breadcrumb_paths.each_with_index do |item, index|
item = anchor_string_to_object(item) if item.is_a?(String) && item.start_with?("\u003c")
if item.is_a?(Hash)
@@ -47,7 +46,7 @@ module BreadcrumbHelper
@breadcrumb_paths ||= [default_breadcrumb]
else
@breadcrumb_paths ||= []
- @breadcrumb_paths += args
+ @breadcrumb_paths += args.flatten.compact
end
end