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

[#64347] name in database cannot be falsy

Tobias Dillmann30b946d9d613
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.erb
index c6398961ce8..66808da18b3 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.attribute_in_database("name") || @custom_field.name }
+ header.with_title { @custom_field.attribute_in_database("name") }
header.with_breadcrumbs(breadcrumbs_items)
diff --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.erb
index 3c2cc5f0908..fc0ff62837f 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.attribute_in_database("name") || @custom_field.name }
+ header.with_title { @custom_field.attribute_in_database("name") }
header.with_description { t("settings.project_attributes.edit.description") }
header.with_breadcrumbs(breadcrumbs_items)