File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Catalog/Model/ResourceModel/Product/Indexer/Price
ConfigurableProduct/Model/ResourceModel/Product/Indexer/Price Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ protected function _movePriceDataToIndexTable($entityIds = null)
591
591
$ select = $ connection ->select ()->from ($ table , $ columns );
592
592
593
593
if ($ entityIds !== null ) {
594
- $ select ->where ('entity_id in (?) ' , $ entityIds );
594
+ $ select ->where ('entity_id in (?) ' , count ( $ entityIds) > 0 ? $ entityIds : 0 );
595
595
}
596
596
597
597
$ query = $ select ->insertFromSelect ($ this ->getIdxTable (), [], false );
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ protected function reindex($entityIds = null)
49
49
{
50
50
if ($ this ->hasEntity () || !empty ($ entityIds )) {
51
51
if (!empty ($ entityIds )) {
52
- $ allEntityIds = $ this ->getRelatedProduct ($ entityIds );
52
+ $ allEntityIds = $ this ->getRelatedProducts ($ entityIds );
53
53
$ this ->prepareFinalPriceDataForType ($ allEntityIds , null );
54
54
} else {
55
55
$ this ->_prepareFinalPriceData ($ entityIds );
@@ -67,7 +67,7 @@ protected function reindex($entityIds = null)
67
67
* @param int[] $entityIds
68
68
* @return int[]
69
69
*/
70
- private function getRelatedProduct ($ entityIds )
70
+ private function getRelatedProducts ($ entityIds )
71
71
{
72
72
$ select = $ this ->getConnection ()->select ()->union (
73
73
[
You can’t perform that action at this time.
0 commit comments