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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#64347] fix custom field Primer bugs
Tobias Dillmannc4826a264614
diff --git a/app/components/admin/custom_fields/edit_form_header_component.html.erb b/app/components/admin/custom_fields/edit_form_header_component.html.erbindex 3a87af24a09..c6398961ce8 100644--- a/app/components/admin/custom_fields/edit_form_header_component.html.erb+++ b/app/components/admin/custom_fields/edit_form_header_component.html.erb@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new(test_selector: "custom-fields--page-header")) do |header|- header.with_title { @custom_field.name }+ header.with_title { @custom_field.attribute_in_database("name") || @custom_field.name }header.with_breadcrumbs(breadcrumbs_items)diff --git a/app/components/admin/custom_fields/edit_form_header_component.rb b/app/components/admin/custom_fields/edit_form_header_component.rbindex cb60d1ff695..04eac57114e 100644--- a/app/components/admin/custom_fields/edit_form_header_component.rb+++ b/app/components/admin/custom_fields/edit_form_header_component.rb@@ -71,7 +71,7 @@ module Admin[{ href: admin_index_path, text: t(:label_administration) },{ href: custom_fields_path, text: t(:label_custom_field_plural) },{ href: custom_fields_path(tab: @custom_field.type), text: I18n.t(@custom_field.type_name) },- @custom_field.name]+ @custom_field.attribute_in_database("name")]endendenddiff --git a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb b/app/components/settings/project_custom_fields/edit_form_header_component.html.erbindex 22ff5ee0bf1..3c2cc5f0908 100644--- a/app/components/settings/project_custom_fields/edit_form_header_component.html.erb+++ b/app/components/settings/project_custom_fields/edit_form_header_component.html.erb@@ -28,7 +28,7 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title { @custom_field.name }+ header.with_title { @custom_field.attribute_in_database("name") || @custom_field.name }header.with_description { t("settings.project_attributes.edit.description") }header.with_breadcrumbs(breadcrumbs_items)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.rbindex 652211fbef1..2bd01df5ef8 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@@ -53,7 +53,7 @@ module Settings[{ 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]+ @custom_field.attribute_in_database("name")]endendend