Ver código fonte

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

feature/export_comptable
Guillaume 4 anos atrás
pai
commit
82b858a69f
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      ShopBundle/Controller/Backend/ProductFamilyController.php

+ 2
- 1
ShopBundle/Controller/Backend/ProductFamilyController.php Ver arquivo

@@ -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);

Carregando…
Cancelar
Salvar