Skip to content

Commit aa52e1f

Browse files
ENGCOM-4342: [Catalog] Fixing the Products grid with default values on multi stores #21363
- Merge Pull Request #21363 from eduard13/magento2:2.3-develop-13338-issue - Merged commits: 1. a0be69b 2. 9e657ad
2 parents 10f900e + 9e657ad commit aa52e1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/ProductDataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory;
99
use Magento\Framework\App\ObjectManager;
10+
use Magento\Store\Model\Store;
1011
use Magento\Ui\DataProvider\Modifier\ModifierInterface;
1112
use Magento\Ui\DataProvider\Modifier\PoolInterface;
1213

@@ -67,6 +68,7 @@ public function __construct(
6768
$this->addFieldStrategies = $addFieldStrategies;
6869
$this->addFilterStrategies = $addFilterStrategies;
6970
$this->modifiersPool = $modifiersPool ?: ObjectManager::getInstance()->get(PoolInterface::class);
71+
$this->getCollection()->setStoreId(Store::DEFAULT_STORE_ID);
7072
}
7173

7274
/**

0 commit comments

Comments
 (0)