Parcourir la source

Fix unit test

Andrej Hudec il y a 12 ans
Parent
commit
0ad1375f8b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      Controller/HelperController.php

+ 2 - 1
Controller/HelperController.php

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