Browse Source

[Backend] Produits : target blank + rester sur la page du formulaire après l'édition

feature/export_comptable
Guillaume 4 years ago
parent
commit
82b858a69f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ShopBundle/Controller/Backend/ProductFamilyController.php

+ 2
- 1
ShopBundle/Controller/Backend/ProductFamilyController.php View File

$this->executeDynamicMethod('update<EntityName>Entity', [$entity, $editForm]); $this->executeDynamicMethod('update<EntityName>Entity', [$entity, $editForm]);
$this->dispatch(EasyAdminEvents::POST_UPDATE, ['entity' => $entity]); $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); $this->dispatch(EasyAdminEvents::POST_EDIT);

Loading…
Cancel
Save