File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/code/Magento/Catalog/Model/Indexer/Product/Category/Action Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,12 @@ private function getProductIdsWithParents(array $childProductIds)
123
123
);
124
124
125
125
$ parentProductIds = $ this ->connection ->fetchCol ($ select );
126
+ $ ids = array_unique (array_merge ($ childProductIds , $ parentProductIds ));
127
+ foreach ($ ids as $ key => $ id ) {
128
+ $ ids [$ key ] = (int ) $ id ;
129
+ }
126
130
127
- return array_unique ( array_merge ( $ childProductIds , $ parentProductIds )) ;
131
+ return $ ids ;
128
132
}
129
133
130
134
/**
@@ -175,7 +179,7 @@ protected function removeEntries()
175
179
protected function getNonAnchorCategoriesSelect (\Magento \Store \Model \Store $ store )
176
180
{
177
181
$ select = parent ::getNonAnchorCategoriesSelect ($ store );
178
- return $ select ->where ('ccp.product_id IN (?) OR relation.child_id IN (?) ' , $ this ->limitationByProducts );
182
+ return $ select ->where ('ccp.product_id IN (?) ' , $ this ->limitationByProducts );
179
183
}
180
184
181
185
/**
You can’t perform that action at this time.
0 commit comments