Skip to content

Commit

Permalink
Update fix update enable current site
Browse files Browse the repository at this point in the history
  • Loading branch information
dieter vanhove authored and dieter vanhove committed Aug 30, 2023
1 parent a00c6cc commit 390affd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/CraftEntryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected static function applySettings(CraftElementEntry $entry, ?stdClass $set
$enabledForSite = [];
foreach (Craft::$app->getSites()->getAllSiteIds() as $siteId) {
if ($siteId === $settings->siteId) {
$enabledForSite[$settings->siteId] = false;
$enabledForSite[$siteId] = $entry->getEnabledForSite();
continue;
}

Expand Down

0 comments on commit 390affd

Please sign in to comment.