瀏覽代碼

Fix unit test

Andrej Hudec 12 年之前
父節點
當前提交
0ad1375f8b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Controller/HelperController.php

+ 2 - 1
Controller/HelperController.php

@@ -157,12 +157,13 @@ class HelperController
         $uniqid   = $request->get('uniqid');
         $uniqid   = $request->get('uniqid');
 
 
         $admin = $this->pool->getInstance($code);
         $admin = $this->pool->getInstance($code);
-        $admin->setRequest($request);
 
 
         if (!$admin) {
         if (!$admin) {
             throw new NotFoundHttpException();
             throw new NotFoundHttpException();
         }
         }
 
 
+        $admin->setRequest($request);
+
         if ($uniqid) {
         if ($uniqid) {
             $admin->setUniqid($uniqid);
             $admin->setUniqid($uniqid);
         }
         }