Przeglądaj źródła

Correctif & duplication sur hub

master
Fab 4 lat temu
rodzic
commit
4952357999
1 zmienionych plików z 3 dodań i 1 usunięć
  1. +3
    -1
      ShopBundle/Controller/Backend/AdminController.php

+ 3
- 1
ShopBundle/Controller/Backend/AdminController.php Wyświetl plik

$this->em->persist($newEntity) ; $this->em->persist($newEntity) ;
$this->em->flush() ; $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) ;
} }


} }

Ładowanie…
Anuluj
Zapisz