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

fix issue when reordering items in a sub item

Bruno Pagno366004796256
diff --git a/app/controllers/admin/custom_fields/hierarchy/items_controller.rb b/app/controllers/admin/custom_fields/hierarchy/items_controller.rb
index 8177f5bd04e..2b27fba7eaf 100644
--- a/app/controllers/admin/custom_fields/hierarchy/items_controller.rb
+++ b/app/controllers/admin/custom_fields/hierarchy/items_controller.rb
@@ -96,7 +96,7 @@ module Admin
item_service
.reorder_item(item: @active_item, new_sort_order: params.require(:new_sort_order))
- redirect_to(custom_field_items_path(@custom_field), status: :see_other)
+ redirect_to(custom_field_item_path(@custom_field, @active_item.parent), status: :see_other)
end
def destroy