Skip to content

Commit

Permalink
MAGETWO-80894: #7582: use setStoreId after custom load method to give…
Browse files Browse the repository at this point in the history
… storeId precedence #11165
  • Loading branch information
Oleksii Korshenko authored Oct 11, 2017
2 parents 104e201 + 2abd6e7 commit 7255572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Quote/Model/QuoteRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected function loadQuote($loadMethod, $loadField, $identifier, array $shared
if ($sharedStoreIds) {
$quote->setSharedStoreIds($sharedStoreIds);
}
$quote->setStoreId($this->storeManager->getStore()->getId())->$loadMethod($identifier);
$quote->$loadMethod($identifier)->setStoreId($this->storeManager->getStore()->getId());
if (!$quote->getId()) {
throw NoSuchEntityException::singleField($loadField, $identifier);
}
Expand Down

0 comments on commit 7255572

Please sign in to comment.