diff --git a/src/Controller/OfferController.php b/src/Controller/OfferController.php index 5edc4af..21e1b82 100644 --- a/src/Controller/OfferController.php +++ b/src/Controller/OfferController.php @@ -170,6 +170,10 @@ class OfferController extends AbstractController $this->entityManager->persist($offer); $this->entityManager->flush(); + + $this->addFlash("success", "Successfully updated the offer!"); + + return $this->redirectToRoute('show_offer', ['urlId' => $offer->getUrlId()]); } return $this->render('offer/edit.html.twig', [