Skip to content

Commit 366e571

Browse files
committed
MAGETWO-70062: Product price filter in admin shows incorrect product amount
- Rename collection to avoid naming conflict with already imported collections in the same namespace
1 parent 2cb027d commit 366e571

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/Collection.php renamed to app/code/Magento/Catalog/Ui/DataProvider/Product/ProductCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* Used for product grid and customizes behavior of the default Product collection for grid needs.
1212
*/
13-
class Collection extends \Magento\Catalog\Model\ResourceModel\Product\Collection
13+
class ProductCollection extends \Magento\Catalog\Model\ResourceModel\Product\Collection
1414
{
1515
/**
1616
* Disables using of price index for grid rendering

app/code/Magento/Catalog/etc/adminhtml/di.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@
7777
<type name="Magento\Catalog\Model\ResourceModel\Attribute">
7878
<plugin name="invalidate_pagecache_after_attribute_save" type="Magento\Catalog\Plugin\Model\ResourceModel\Attribute\Save" />
7979
</type>
80-
<virtualType name="\Magento\Catalog\Ui\DataProvider\Product\CollectionFactory" type="\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory">
80+
<virtualType name="\Magento\Catalog\Ui\DataProvider\Product\ProductCollectionFactory" type="\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory">
8181
<arguments>
82-
<argument name="instanceName" xsi:type="string">\Magento\Catalog\Ui\DataProvider\Product\Collection</argument>
82+
<argument name="instanceName" xsi:type="string">\Magento\Catalog\Ui\DataProvider\Product\ProductCollection</argument>
8383
</arguments>
8484
</virtualType>
8585
<type name="Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider">
@@ -90,7 +90,7 @@
9090
<argument name="addFilterStrategies" xsi:type="array">
9191
<item name="store_id" xsi:type="object">Magento\Catalog\Ui\DataProvider\Product\AddStoreFieldToCollection</item>
9292
</argument>
93-
<argument name="collectionFactory" xsi:type="object">\Magento\Catalog\Ui\DataProvider\Product\CollectionFactory</argument>
93+
<argument name="collectionFactory" xsi:type="object">\Magento\Catalog\Ui\DataProvider\Product\ProductCollectionFactory</argument>
9494
</arguments>
9595
</type>
9696
<type name="Magento\Catalog\Model\Product\Action">

0 commit comments

Comments
 (0)