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