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

create data attribute using hash

Ivan Kuchine4c59423611e
diff --git a/lib/open_project/custom_field_format_dependent.rb b/lib/open_project/custom_field_format_dependent.rb
index dcdb8505fd1..75a7db50205 100644
--- a/lib/open_project/custom_field_format_dependent.rb
+++ b/lib/open_project/custom_field_format_dependent.rb
@@ -59,7 +59,7 @@ module OpenProject
visible = operator == :only ? format.in?(formats) : !format.in?(formats)
ApplicationController.helpers.tag.attributes(
- "data-admin--custom-fields-target": target_name,
+ data: { "admin--custom-fields-target": target_name },
hidden: !visible
)
end