소스 검색

fix bug with ambiguous sql call

Olivier Massot 4 년 전
부모
커밋
7a55404d6d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ot_core/Classes/Website/OtWebsiteRepository.php

+ 1 - 1
ot_core/Classes/Website/OtWebsiteRepository.php

@@ -187,7 +187,7 @@ class OtWebsiteRepository
             ->where($queryBuilder->expr()->eq('w.organization_id', $organizationId))
             ->andWhere($queryBuilder->expr()->eq('p.is_siteroot', 1));
         if ($withRestrictions) {
-            $q->andWhere($q->expr()->eq('deleted', 0));
+            $q->andWhere($q->expr()->eq('w.deleted', 0));
         }
         $rootUid = $q->execute()->fetchColumn(0);
         if (!$rootUid) {