Explorar el Código

Correctif & duplication sur hub

master
Fab hace 4 años
padre
commit
4952357999
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      ShopBundle/Controller/Backend/AdminController.php

+ 3
- 1
ShopBundle/Controller/Backend/AdminController.php Ver fichero

@@ -636,7 +636,9 @@ class AdminController extends EasyAdminController
$this->em->persist($newEntity) ;
$this->em->flush() ;

return $this->redirectToRoute('easyadmin', ['entity' => $easyadmin['entity']['name'], 'action' => 'edit', 'id' =>$newEntity->getId(), 'referer' =>$refererUrl ]) ;
$redirectUrl = $hub->getMerchantConfig('url').substr($this->generateUrl('easyadmin', ['entity' => $easyadmin['entity']['name'], 'action' => 'edit', 'id' =>$newEntity->getId(), 'referer' =>$refererUrl ]),1);

return $this->redirect($redirectUrl) ;
}

}

Cargando…
Cancelar
Guardar