Redirect to offer after editing
This commit is contained in:
parent
3d0ffa3311
commit
7b9542f0bd
1 changed files with 4 additions and 0 deletions
|
@ -170,6 +170,10 @@ class OfferController extends AbstractController
|
||||||
|
|
||||||
$this->entityManager->persist($offer);
|
$this->entityManager->persist($offer);
|
||||||
$this->entityManager->flush();
|
$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', [
|
return $this->render('offer/edit.html.twig', [
|
||||||
|
|
Reference in a new issue