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

update breadcrumb in edit form of project attribute

Behrokh Satarnejadb70ddc526f4d
diff --git a/app/components/settings/project_custom_fields/edit_form_header_component.rb b/app/components/settings/project_custom_fields/edit_form_header_component.rb
index 62a47fc6937..41f0a1b562d 100644
--- a/app/components/settings/project_custom_fields/edit_form_header_component.rb
+++ b/app/components/settings/project_custom_fields/edit_form_header_component.rb
@@ -36,8 +36,12 @@ module Settings
end
def breadcrumbs_items
- [{ href: admin_settings_project_custom_fields_path, text: t("label_administration") },
- t("settings.project_attributes.heading")]
+ [
+ { href: admin_index_path, text: t("label_administration") },
+ { href: admin_settings_project_custom_fields_path, text: t("label_project_plural") },
+ { href: admin_settings_project_custom_fields_path, text: t("settings.project_attributes.heading") },
+ @custom_field.name
+ ]
end
end
end