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

[#53802] Deletion dialog does not provide enough context

Dombi Attilac728e196020e
diff --git a/app/components/settings/project_custom_field_sections/custom_field_row_component.rb b/app/components/settings/project_custom_field_sections/custom_field_row_component.rb
index b57eb096fff..278207c506b 100644
--- a/app/components/settings/project_custom_field_sections/custom_field_row_component.rb
+++ b/app/components/settings/project_custom_field_sections/custom_field_row_component.rb
@@ -79,8 +79,8 @@ module Settings
scheme: :danger,
href: admin_settings_project_custom_field_path(@project_custom_field),
form_arguments: {
- method: :delete, data: { confirm: t("text_are_you_sure"), "turbo-stream": true,
- test_selector: "project-custom-field-delete" }
+ method: :delete, data: { confirm: t("text_are_you_sure_with_project_custom_fields"),
+ "turbo-stream": true, test_selector: "project-custom-field-delete" }
}) do |item|
item.with_leading_visual_icon(icon: :trash)
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 95503b691ca..92b0e652cd6 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3272,6 +3272,7 @@ Project attributes and sections are defined in the <a href=%{admin_settings_url}
text_are_you_sure: "Are you sure?"
text_are_you_sure_continue: "Are you sure you want to continue?"
text_are_you_sure_with_children: "Delete work package and all child work packages?"
+ text_are_you_sure_with_project_custom_fields: "Deleting this attribute will also delete its values in all projects. Are you sure you want to do this?"
text_assign_to_project: "Assign to the project"
text_form_configuration: >
You can customize which fields will be displayed in work package forms.