From 5952d4ea15c4c7528bf53d3e2e817c78988903b0 Mon Sep 17 00:00:00 2001 From: Danny van Wijk Date: Fri, 19 Apr 2024 14:55:52 +0200 Subject: [PATCH] Fix node reorder --- src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php b/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php index a86cd48d04..9d148cdcdf 100644 --- a/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php +++ b/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php @@ -639,11 +639,11 @@ public function addHomepageAction(Request $request): RedirectResponse } #[Route(path: '/reorder', name: 'KunstmaanNodeBundle_nodes_reorder', methods: ['POST'])] - public function reorderAction(Request $request): string + public function reorderAction(Request $request): Response { $this->init($request); $nodes = []; - $nodeIds = $request->request->get('nodes'); + $nodeIds = $request->request->all('nodes'); $changeParents = $request->request->get('parent'); foreach ($nodeIds as $id) {