Skip to content

Commit

Permalink
プラグインから Sites に対してアソシエーションを設定した場合に画面が表示できない問題を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Mar 4, 2024
1 parent 0fc2e1a commit cbd7a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/baser-core/src/Service/AppService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cbd7a88

Please sign in to comment.