Skip to content

Commit 38b3d74

Browse files
authored
Update Category.php
1 parent 6a83677 commit 38b3d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/ResourceModel/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected function _afterSave(\Magento\Framework\Model\AbstractModel $object)
104104
{
105105
$oldStoreIds = $this->lookupStoreIds($object->getId());
106106
$newStoreIds = (array)$object->getStoreIds();
107-
if (!$newStoreIds) {
107+
if (!$newStoreIds || in_array(0, $newStoreIds)) {
108108
$newStoreIds = [0];
109109
}
110110

0 commit comments

Comments
 (0)