Skip to content

Commit 55063d7

Browse files
author
Michail Slabko
committed
MAGETWO-44927: Two products are added to shopping cart when MAP is enabled + Production mode
1 parent 3701659 commit 55063d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Webapi/Controller/PathProcessor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public function process($pathInfo)
5353
if (isset($stores[$storeCode])) {
5454
$this->storeManager->setCurrentStore($storeCode);
5555
$path = '/' . (isset($pathParts[1]) ? $pathParts[1] : '');
56-
} else if ($storeCode === self::ALL_STORE_CODE) {
56+
} else if ($storeCode === self::ALL_STORE_CODE || $storeCode === \Magento\Store\Model\Store::ADMIN_CODE) {
57+
//TODO: eliminate "admin" check after MAGETWO-45544
5758
$this->storeManager->setCurrentStore(\Magento\Store\Model\Store::ADMIN_CODE);
5859
$path = '/' . (isset($pathParts[1]) ? $pathParts[1] : '');
5960
} else {

0 commit comments

Comments
 (0)