Skip to content

Commit 5da50d2

Browse files
committed
MAGETWO-67024: Sorting by price ignores Catalog Price Rule for Simple product with required custom option
1 parent c5295a4 commit 5da50d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Bundle/Model/ResourceModel/Indexer/Price.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ protected function _prepareTierPriceIndex($entityIds = null)
471471
*
472472
* @return void
473473
*/
474-
private function applyBundlePrice() : void
474+
private function applyBundlePrice(): void
475475
{
476476
$select = $this->getConnection()->select();
477477
$select->from(
@@ -499,7 +499,7 @@ private function applyBundlePrice() : void
499499
*
500500
* @return void
501501
*/
502-
private function applyBundleOptionPrice() : void
502+
private function applyBundleOptionPrice(): void
503503
{
504504
$connection = $this->getConnection();
505505

@@ -524,7 +524,7 @@ private function applyBundleOptionPrice() : void
524524
$select = $connection->select()->join(
525525
['io' => $subSelect],
526526
'i.entity_id = io.entity_id AND i.customer_group_id = io.customer_group_id' .
527-
' AND i.website_id = io.website_id',
527+
' AND i.website_id = io.website_id',
528528
[]
529529
)->columns(
530530
[

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/DefaultPrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class DefaultPrice extends AbstractIndexer implements PriceInterface
7171
* @param \Magento\Framework\Event\ManagerInterface $eventManager
7272
* @param \Magento\Framework\Module\Manager $moduleManager
7373
* @param string|null $connectionName
74-
* @param IndexTableStructureFactory $indexTableStructureFactory
74+
* @param null|IndexTableStructureFactory $indexTableStructureFactory
7575
* @param PriceModifierInterface[] $priceModifiers
7676
*/
7777
public function __construct(

0 commit comments

Comments
 (0)