Skip to content

Commit

Permalink
magento#7582: use setStoreId after custom load method to given storeI…
Browse files Browse the repository at this point in the history
…d determination precedence to fix payment title translation error in checkout
  • Loading branch information
Bernhard Leers committed Oct 1, 2017
1 parent 9c14af7 commit 33dcc36
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 33dcc36

Please sign in to comment.