Skip to content

Commit

Permalink
Fix node reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny van Wijk committed Apr 19, 2024
1 parent 629a54e commit 5952d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5952d4e

Please sign in to comment.