Skip to content

Commit 4a11b6e

Browse files
committed
ACP2E-2843: Products on the frontend use store specific data when Single-Store Mode is enabled
- solution with test coverage
1 parent 2900636 commit 4a11b6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Observer/MoveStoreLevelCatalogDataToWebsiteScopeOnSingleStoreMode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function execute(Observer $observer)
5757
$changedPaths = (array)$observer->getEvent()->getChangedPaths();
5858
if (in_array(StoreManager::XML_PATH_SINGLE_STORE_MODE_ENABLED, $changedPaths, true)
5959
&& $this->scopeConfig->getValue(StoreManager::XML_PATH_SINGLE_STORE_MODE_ENABLED)
60+
&& $this->storeManager->hasSingleStore()
6061
) {
6162
$store = $this->storeManager->getDefaultStoreView();
6263
if ($store) {

0 commit comments

Comments
 (0)