Christophe Coevoet 14 年之前
父节点
当前提交
41fdf2794c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Controller/HelperController.php

+ 4 - 0
Controller/HelperController.php

@@ -62,11 +62,15 @@ class HelperController extends Controller
         $elementId  = $this->get('request')->get('elementId');
         $objectId   = $this->get('request')->get('objectId');
         $admin      = $helper->getAdmin($code);
+        $uniqid     = $this->get('request')->query->get('uniqid');
 
         $subject = $admin->getModelManager()->findOne($admin->getClass(), $objectId);
         if (!$subject) {
             throw new NotFoundHttpException(sprintf('Unable to find the object id: %s, class: %s', $objectId, $admin->getClass()));
         }
+        if ($uniqid) {
+            $admin->setUniqid($uniqid);
+        }
 
         $formBuilder = $admin->getFormBuilder($subject);