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

[#64557] merged item options in item form

Eric Schubert769ccd28c94f
diff --git a/app/components/admin/custom_fields/hierarchy/item_form_component.rb b/app/components/admin/custom_fields/hierarchy/item_form_component.rb
index 3df11f8ccab..09034d3b962 100644
--- a/app/components/admin/custom_fields/hierarchy/item_form_component.rb
+++ b/app/components/admin/custom_fields/hierarchy/item_form_component.rb
@@ -35,10 +35,14 @@ module Admin
include OpTurbo::Streamable
def item_options
- options = { url:, method: http_verb, data: { test_selector: "op-custom-fields--new-item-form" } }
- options[:data][:turbo_frame] = ItemsComponent.wrapper_key
-
- options
+ {
+ url:,
+ method: http_verb,
+ data: {
+ turbo_frame: ItemsComponent.wrapper_key,
+ test_selector: "op-custom-fields--new-item-form"
+ }
+ }
end
def http_verb