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

Adds the hidden field with sort order

Marcello Rocha0786dccd8fd3
diff --git a/app/forms/custom_fields/hierarchy/item_form.rb b/app/forms/custom_fields/hierarchy/item_form.rb
index 988c3a3b0a3..33f2db83a28 100644
--- a/app/forms/custom_fields/hierarchy/item_form.rb
+++ b/app/forms/custom_fields/hierarchy/item_form.rb
@@ -30,6 +30,8 @@ module CustomFields
module Hierarchy
class ItemForm < ApplicationForm
form do |item_form|
+ item_form.hidden name: :sort_order, value: @target_item.sort_order
+
item_form.group(layout: :horizontal) do |input_group|
input_group.text_field(
name: :label,