Browse Source

fix query

Olivier Massot 1 year ago
parent
commit
f87ad0f582
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ot_admin/Classes/Controller/SiteController.php

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

@@ -2398,8 +2398,8 @@ class SiteController extends ActionController
         $queryBuilder
         $queryBuilder
             ->select('uid')
             ->select('uid')
             ->from('sys_filemounts')
             ->from('sys_filemounts')
-            ->where("path LIKE '%user_upload/" . $organizationId . "/'")
-            ->orWhere("path LIKE '%form_definitions/" . $organizationId . "/'");
+            ->where("identifier LIKE '1:%user_upload/" . $organizationId . "/'")
+            ->orWhere("identifier LIKE '1:%form_definitions/" . $organizationId . "/'");
         $statement = $queryBuilder->executeQuery();
         $statement = $queryBuilder->executeQuery();
         $rows = $statement->fetchAllAssociative() ?: [];
         $rows = $statement->fetchAllAssociative() ?: [];
         $fileMounts = [];
         $fileMounts = [];