File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/Bundle/Model/ResourceModel/Indexer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ protected function _prepareTierPriceIndex($entityIds = null)
491
491
null
492
492
)->join (
493
493
['e ' => $ this ->getTable ('catalog_product_entity ' )],
494
- "i.entity_id=e. $ linkField " ,
494
+ "i.entity_id=e.entity_id " ,
495
495
[]
496
496
)->where (
497
497
'e.type_id=? ' ,
@@ -502,7 +502,7 @@ protected function _prepareTierPriceIndex($entityIds = null)
502
502
503
503
$ select = $ connection ->select ()->from (
504
504
['tp ' => $ this ->getTable ('catalog_product_entity_tier_price ' )],
505
- [$ linkField ]
505
+ [' e.entity_id ' ]
506
506
)->join (
507
507
['e ' => $ this ->getTable ('catalog_product_entity ' )],
508
508
"tp. {$ linkField } = e. {$ linkField }" ,
@@ -523,11 +523,11 @@ protected function _prepareTierPriceIndex($entityIds = null)
523
523
)->columns (
524
524
new \Zend_Db_Expr ('MIN(tp.value) ' )
525
525
)->group (
526
- [" tp. { $ linkField }" , 'cg.customer_group_id ' , 'cw.website_id ' ]
526
+ [' e.entity_id ' , 'cg.customer_group_id ' , 'cw.website_id ' ]
527
527
);
528
528
529
529
if (!empty ($ entityIds )) {
530
- $ select ->where (" tp. { $ linkField } IN(?) " , $ entityIds );
530
+ $ select ->where (' e.entity_id IN(?)' , $ entityIds );
531
531
}
532
532
533
533
$ query = $ select ->insertFromSelect ($ this ->_getTierPriceIndexTable ());
You can’t perform that action at this time.
0 commit comments