Christophe Coevoet 14 gadi atpakaļ
vecāks
revīzija
41fdf2794c
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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');
         $elementId  = $this->get('request')->get('elementId');
         $objectId   = $this->get('request')->get('objectId');
         $objectId   = $this->get('request')->get('objectId');
         $admin      = $helper->getAdmin($code);
         $admin      = $helper->getAdmin($code);
+        $uniqid     = $this->get('request')->query->get('uniqid');
 
 
         $subject = $admin->getModelManager()->findOne($admin->getClass(), $objectId);
         $subject = $admin->getModelManager()->findOne($admin->getClass(), $objectId);
         if (!$subject) {
         if (!$subject) {
             throw new NotFoundHttpException(sprintf('Unable to find the object id: %s, class: %s', $objectId, $admin->getClass()));
             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);
         $formBuilder = $admin->getFormBuilder($subject);