We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0be69b commit 9e657adCopy full SHA for 9e657ad
app/code/Magento/Catalog/Ui/DataProvider/Product/ProductDataProvider.php
@@ -68,7 +68,7 @@ public function __construct(
68
$this->addFieldStrategies = $addFieldStrategies;
69
$this->addFilterStrategies = $addFilterStrategies;
70
$this->modifiersPool = $modifiersPool ?: ObjectManager::getInstance()->get(PoolInterface::class);
71
- $this->setDefaultStoreToCollection();
+ $this->getCollection()->setStoreId(Store::DEFAULT_STORE_ID);
72
}
73
74
/**
@@ -142,12 +142,4 @@ public function getMeta()
142
143
return $meta;
144
145
-
146
- /**
147
- * Filter the product collection by Default Store if no filter is applied
148
- */
149
- private function setDefaultStoreToCollection()
150
- {
151
- $this->getCollection()->setStoreId(Store::DEFAULT_STORE_ID);
152
- }
153
0 commit comments