Redirect to offer after editing

This commit is contained in:
Jannis Portmann 2022-01-26 10:10:19 +01:00
parent 3d0ffa3311
commit 7b9542f0bd

View file

@ -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', [