File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
app/code/Magento/Bundle/Model/ResourceModel/Indexer Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -674,7 +674,6 @@ private function calculateFixedBundleSelectionPrice()
674
674
private function calculateDynamicBundleSelectionPrice (array $ dimensions ): void
675
675
{
676
676
$ connection = $ this ->getConnection ();
677
-
678
677
$ price = 'idx.min_price * bs.selection_qty ' ;
679
678
$ specialExpr = $ connection ->getCheckSql (
680
679
'i.special_price > 0 AND i.special_price < 100 ' ,
@@ -716,7 +715,7 @@ private function calculateDynamicBundleSelectionPrice(array $dimensions): void
716
715
[]
717
716
);
718
717
$ select ->where ('si.stock_status = ? ' , Stock::STOCK_IN_STOCK );
719
- $ select = str_replace ('AS `idx` ' , 'AS `idx` USE INDEX (PRIMARY) ' , $ select -> __toString () );
718
+ $ query = str_replace ('AS `idx` ' , 'AS `idx` USE INDEX (PRIMARY) ' , ( string ) $ select );
720
719
$ insertColumns = [
721
720
'entity_id ' ,
722
721
'customer_group_id ' ,
@@ -739,7 +738,7 @@ private function calculateDynamicBundleSelectionPrice(array $dimensions): void
739
738
$ connection ->query (sprintf (
740
739
"INSERT INTO ` " . $ this ->getBundleSelectionTable () . "` (%s) %s ON DUPLICATE KEY UPDATE %s " ,
741
740
implode (", " , $ insertColumns ),
742
- $ select ,
741
+ $ query ,
743
742
implode (", " , $ updateValues )
744
743
));
745
744
}
You can’t perform that action at this time.
0 commit comments