100% test coverage
This commit is contained in:
parent
2a28465626
commit
34171d6c2b
8 changed files with 214 additions and 16 deletions
|
@ -30,7 +30,9 @@ final class MenuItemController extends AbstractController
|
|||
if ($form->isSubmitted() && $form->isValid()) {
|
||||
$entityManager->flush();
|
||||
|
||||
return $this->redirectToRoute('app_menu_item_index', [], Response::HTTP_SEE_OTHER);
|
||||
return $this->redirectToRoute('app_menu_item_show', [
|
||||
'id' => $menuItem->getId(),
|
||||
], Response::HTTP_SEE_OTHER);
|
||||
}
|
||||
|
||||
return $this->render('menu_item/edit.html.twig', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue