@@ -312,7 +312,8 @@ class ProductFamilyController extends AdminController | |||
$this->executeDynamicMethod('update<EntityName>Entity', [$entity, $editForm]); | |||
$this->dispatch(EasyAdminEvents::POST_UPDATE, ['entity' => $entity]); | |||
return $this->redirectToReferrer(); | |||
$this->utils->addFlash('success', 'Produit sauvegardé') ; | |||
return $this->redirectToRoute('easyadmin', ['entity' => 'ProductFamily', 'action' => 'edit', 'id' => $id]) ; | |||
} | |||
$this->dispatch(EasyAdminEvents::POST_EDIT); |