Skip to content

Commit b4f0025

Browse files
committed
ACP2E-778: REST API: Product names in cart always use default store view values
1 parent c929c1a commit b4f0025

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Framework\Exception\NoSuchEntityException;
1111

1212
/**
13-
* Class PathProcessor to resolve the request path
13+
* Class PathProcessor
1414
*/
1515
class PathProcessor
1616
{
@@ -70,11 +70,11 @@ public function process($pathInfo)
7070
if (isset($stores[$storeCode])) {
7171
$this->storeManager->setCurrentStore($storeCode);
7272
$this->localeResolver->emulate($this->storeManager->getStore()->getId());
73-
$path = '/' . ($pathParts[1] ?? '');
73+
$path = '/' . (isset($pathParts[1]) ? $pathParts[1] : '');
7474
} elseif ($storeCode === self::ALL_STORE_CODE) {
7575
$this->storeManager->setCurrentStore(\Magento\Store\Model\Store::ADMIN_CODE);
7676
$this->localeResolver->emulate($this->storeManager->getStore()->getId());
77-
$path = '/' . ($pathParts[1] ?? '');
77+
$path = '/' . (isset($pathParts[1]) ? $pathParts[1] : '');
7878
} else {
7979
$path = '/' . implode('/', $pathParts);
8080
}

0 commit comments

Comments
 (0)