Sfoglia il codice sorgente

Correctif & duplication sur hub

master
Fab 4 anni fa
parent
commit
4952357999
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      ShopBundle/Controller/Backend/AdminController.php

+ 3
- 1
ShopBundle/Controller/Backend/AdminController.php Vedi File

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

}

Loading…
Annulla
Salva