Skip to content

Commit 84daa3f

Browse files
MC-21706: When products are added to a cart in the admin from a non-default website, the cart empties and nothing is added
1 parent 99f206f commit 84daa3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/QuoteRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ protected function loadQuote($loadMethod, $loadField, $identifier, array $shared
224224
{
225225
/** @var CartInterface $quote */
226226
$quote = $this->cartFactory->create();
227-
if ($sharedStoreIds && method_exists($quote, 'setSharedStoreIds')) {
227+
if ($sharedStoreIds && is_callable([$quote, 'setSharedStoreIds'])) {
228228
$quote->setSharedStoreIds($sharedStoreIds);
229229
}
230230
$quote->setStoreId($this->storeManager->getStore()->getId())->$loadMethod($identifier);

0 commit comments

Comments
 (0)