File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,14 +65,14 @@ protected function filterProductIds(array $productIds): array
65
65
$ collection ->addAttributeToSelect (['name ' , 'price ' ]);
66
66
67
67
$ collection ->getSelect ()->joinLeft (
68
- [' price_index ' => ' catalog_product_index_price ' ],
69
- ' e .entity_id = price_index .entity_id ' ,
68
+ [self :: PRICE_INDEX_TABLE_ALIAS => self :: PRICE_INDEX_TABLE ],
69
+ self :: MAIN_TABLE_ALIAS . ' .entity_id = ' . self :: PRICE_INDEX_TABLE_ALIAS . ' .entity_id ' ,
70
70
[]
71
71
);
72
72
73
73
$ collection ->getSelect ()
74
- ->where (' price_index .entity_id IS NULL ' )
75
- ->where (' e .entity_id IN (?) ' , $ productIds );
74
+ ->where (self :: PRICE_INDEX_TABLE_ALIAS . ' .entity_id IS NULL ' )
75
+ ->where (self :: MAIN_TABLE_ALIAS . ' .entity_id IN (?) ' , $ productIds );
76
76
77
77
return $ collection ->getAllIds ();
78
78
}
You can’t perform that action at this time.
0 commit comments