Skip to content

Commit

Permalink
ユニットテストが失敗していたため調整
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Dec 5, 2023
1 parent e4a7ed8 commit d434810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/baser-core/src/Model/Table/SitesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ public function save(EntityInterface $entity, $options = [])
if($request) {
$session = Router::getRequest()->getSession();
$currentSite = $session->read('BcApp.Admin.currentSite');
if ($success->id === $currentSite->id) {
if ($currentSite && $success->id === $currentSite->id) {
$session->write('BcApp.Admin.currentSite', $success);
}
}
Expand Down

0 comments on commit d434810

Please sign in to comment.