Skip to content

Commit 6a83677

Browse files
authored
Update Post.php
1 parent 5b0194a commit 6a83677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/ResourceModel/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ protected function _afterSave(\Magento\Framework\Model\AbstractModel $object)
146146
{
147147
$oldIds = $this->lookupStoreIds($object->getId());
148148
$newIds = (array)$object->getStoreIds();
149-
if (!$newIds) {
149+
if (!$newIds || in_array(0, $newIds)) {
150150
$newIds = [0];
151151
}
152152

0 commit comments

Comments
 (0)