File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
app/code/Magento/Catalog/Model/ResourceModel/Product Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -2062,19 +2062,18 @@ protected function _applyZeroStoreProductLimitations()
2062
2062
$ filters = $ this ->_productLimitationFilters ;
2063
2063
$ categories = $ this ->getChildrenCategories ((int )$ filters ['category_id ' ]);
2064
2064
2065
- $ categoryProductSelect = $ this ->getConnection ()->select ();
2066
- $ categoryProductSelect ->from ($ this ->getTable ('catalog_category_product ' ))
2065
+ $ categoryProductSelect = $ this ->getConnection ()->select ()
2066
+ ->from ($ this ->getTable ('catalog_category_product ' ))
2067
2067
->reset (Select::ORDER )
2068
2068
->reset (Select::LIMIT_COUNT )
2069
2069
->reset (Select::LIMIT_OFFSET )
2070
- ->reset (Select::COLUMNS );
2071
-
2072
- $ categoryProductSelect ->columns ([
2073
- "product_id " => "product_id " ,
2074
- "min_position " => new Zend_Db_Expr ("MIN(position) " )
2075
- ]);
2076
- $ categoryProductSelect ->where ("category_id IN (?) " , $ categories );
2077
- $ categoryProductSelect ->group ("product_id " );
2070
+ ->reset (Select::COLUMNS )
2071
+ ->columns ([
2072
+ "product_id " => "product_id " ,
2073
+ "min_position " => new Zend_Db_Expr ("MIN(position) " )
2074
+ ])
2075
+ ->where ("category_id IN (?) " , $ categories )
2076
+ ->group ("product_id " );
2078
2077
2079
2078
$ joinCond = 'cat_pro.product_id = e.entity_id ' ;
2080
2079
You can’t perform that action at this time.
0 commit comments