浏览代码

Correctif & duplication sur hub

master
Fab 4 年前
父节点
当前提交
4952357999
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      ShopBundle/Controller/Backend/AdminController.php

+ 3
- 1
ShopBundle/Controller/Backend/AdminController.php 查看文件

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

}

正在加载...
取消
保存