Skip to content

Commit

Permalink
Merge pull request #3408 from insiders/node-reorder
Browse files Browse the repository at this point in the history
[NodeBundle] Fix node reorder
  • Loading branch information
acrobat authored Apr 20, 2024
2 parents 629a54e + 5952d4e commit 05c3043
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 05c3043

Please sign in to comment.