From cbd7a88751c7463162b0dd506ce07a2ac016fb46 Mon Sep 17 00:00:00 2001 From: ryuring Date: Mon, 4 Mar 2024 23:48:57 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=97=E3=83=A9=E3=82=B0=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=81=8B=E3=82=89=20Sites=20=E3=81=AB=E5=AF=BE=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=82=A2=E3=82=BD=E3=82=B7=E3=82=A8=E3=83=BC=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=82=92=E8=A8=AD=E5=AE=9A=E3=81=97=E3=81=9F?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AB=E7=94=BB=E9=9D=A2=E3=81=8C=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/baser-core/src/Service/AppService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/baser-core/src/Service/AppService.php b/plugins/baser-core/src/Service/AppService.php index 2201069f89..358d05d304 100644 --- a/plugins/baser-core/src/Service/AppService.php +++ b/plugins/baser-core/src/Service/AppService.php @@ -66,7 +66,7 @@ public function getCurrentSite(): ?Site $site = Router::getRequest()->getAttribute('currentSite'); if($site) { $sitesTable = TableRegistry::getTableLocator()->get('BaserCore.Sites'); - return $sitesTable->find()->where(['id' => $site->id])->first(); + return $sitesTable->find()->where(['Sites.id' => $site->id])->first(); } else { return null; }