Explorar el Código

https://assistance.opentalent.fr/browse/V8-1778

Olivier Massot hace 5 años
padre
commit
f983f4b1db

+ 1 - 1
ot_admin/Classes/Controller/SiteController.php

@@ -550,7 +550,7 @@ class SiteController extends ActionController
         $queryBuilder
         $queryBuilder
             ->update('sys_template')
             ->update('sys_template')
             ->set('constants', $constants)
             ->set('constants', $constants)
-            ->where($queryBuilder->expr()->eq('uid', $rootUid))
+            ->where($queryBuilder->expr()->eq('pid', $rootUid))
             ->execute();
             ->execute();
         return $rootUid;
         return $rootUid;
     }
     }

+ 1 - 1
ot_admin/Classes/Middleware/OtBackendUserAuthenticator.php

@@ -16,7 +16,7 @@ class OtBackendUserAuthenticator extends BackendUserAuthenticator
      * Check if the user is required for the request
      * Check if the user is required for the request
      * If we're trying to do a login or an ajax login, don't require a user
      * If we're trying to do a login or an ajax login, don't require a user
      *
      *
-     * @param string $routePath the Route path to check against, something like '
+     * @param string $routePath the Route path to check against
      * @return bool whether the request can proceed without a login required
      * @return bool whether the request can proceed without a login required
      */
      */
     protected function isLoggedInBackendUserRequired(string $routePath): bool
     protected function isLoggedInBackendUserRequired(string $routePath): bool