Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/api/MAGETWO-44235-Error-when-tr…
Browse files Browse the repository at this point in the history
…ying-to-assign-a-store-from-one-website-to-another' into API-Bug-PR
  • Loading branch information
Cari Spruiell committed Nov 2, 2015
2 parents 6ad87fd + 5a793cc commit a58bda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Store/Model/StoreResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getCurrentStoreId()
}

if (!in_array($store->getId(), $stores)) {
throw new NoSuchEntityException(__('Requested scope cannot be loaded'));
$store = $this->getDefaultStoreById($defaultStoreId);
}
} else {
$store = $this->getDefaultStoreById($defaultStoreId);
Expand Down

0 comments on commit a58bda7

Please sign in to comment.