Explorar el Código

Merge pull request #1089 from pulzarraider/test_fix

Fix HelperController
Thomas hace 12 años
padre
commit
d884fda773
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
         }