Skip to content

Commit ec7ab78

Browse files
committed
AC-711:Code Review chages
1 parent 83f494d commit ec7ab78

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,16 +2067,12 @@ protected function _applyZeroStoreProductLimitations()
20672067

20682068
$categoryProductSelect = $this->getConnection()->select()
20692069
->from($this->getTable('catalog_category_product'))
2070-
->reset(Select::ORDER)
2071-
->reset(Select::LIMIT_COUNT)
2072-
->reset(Select::LIMIT_OFFSET)
2073-
->reset(Select::COLUMNS)
2074-
->columns([
2075-
"product_id" => "product_id",
2076-
"min_position" => new Zend_Db_Expr("MIN(position)")
2070+
>columns([
2071+
'product_id' => 'product_id',
2072+
'min_position' => new Zend_Db_Expr('MIN(position)')
20772073
])
2078-
->where("category_id IN (?)", $categories)
2079-
->group("product_id");
2074+
->where('category_id IN (?)', $categories)
2075+
->group('product_id');
20802076

20812077
$joinCond = 'cat_pro.product_id = e.entity_id';
20822078

0 commit comments

Comments
 (0)