Skip to content

Commit

Permalink
Merge pull request #22 from pysebb/feature/scandipwa-2522-single-stor…
Browse files Browse the repository at this point in the history
…e-mode

Updated ResourceModel in order to accept Single-Store mode magento setup
  • Loading branch information
carinadues authored Oct 6, 2021
2 parents 068c5d5 + 4b895a1 commit daaf265
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 (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 daaf265

Please sign in to comment.