Skip to content

Commit 73c1946

Browse files
committed
MC-42781: [Magento Cloud][Premier Support] Graphql request can add product to cart that is NOT assigned to a website of a multi site store
1 parent dd32ee5 commit 73c1946

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/GetMaskedQuoteIdByReservedOrderId.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function __construct(
5757
public function execute(string $reservedOrderId): string
5858
{
5959
$quote = $this->quoteFactory->create();
60+
$quote->setSharedStoreIds(['*']);
6061
$this->quoteResource->load($quote, $reservedOrderId, 'reserved_order_id');
6162

6263
return $this->quoteIdToMaskedId->execute((int)$quote->getId());

dev/tests/integration/testsuite/Magento/GraphQl/Quote/GetMaskedQuoteIdByReservedOrderId.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function __construct(
5757
public function execute(string $reservedOrderId): string
5858
{
5959
$quote = $this->quoteFactory->create();
60+
$quote->setSharedStoreIds(['*']);
6061
$this->quoteResource->load($quote, $reservedOrderId, 'reserved_order_id');
6162

6263
return $this->quoteIdToMaskedId->execute((int)$quote->getId());

0 commit comments

Comments
 (0)