From 311802be6b7f05a0a9f744615c2172f2ea959b98 Mon Sep 17 00:00:00 2001 From: lubiana Date: Thu, 15 Aug 2024 18:31:10 +0200 Subject: [PATCH] #42: fix bug --- src/Controller/MenuItemController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Controller/MenuItemController.php b/src/Controller/MenuItemController.php index c7d9aaf..db4eb0e 100644 --- a/src/Controller/MenuItemController.php +++ b/src/Controller/MenuItemController.php @@ -48,6 +48,8 @@ final class MenuItemController extends AbstractController $entityManager->flush(); } - return $this->redirectToRoute('app_menu_item_index', [], Response::HTTP_SEE_OTHER); + return $this->redirectToRoute('app_food_vendor_show', [ + 'id' => $menuItem->getFoodVendor()->getId() + ], Response::HTTP_SEE_OTHER); } } -- 2.39.5