Skip to content

Commit

Permalink
Update Menu.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zans-laksa committed Oct 6, 2021
1 parent 39ba79b commit 4b895a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/ResourceModel/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected function _setStoreIds(\Magento\Framework\Model\AbstractModel $object)
$menuData = $request->getParam('menu');

if ($menuData && isset($menuData['store_id'])) {
if (is_string($menuData['store_id']) or in_array(0, $menuData['store_id'])) {
if (is_string($menuData['store_id']) || isset($menuData['store_id'][0])) {
$object->setData('stores', [0]);
} else {
$object->setData('stores', $menuData['store_id']);
Expand Down

0 comments on commit 4b895a1

Please sign in to comment.