Skip to content

Commit b8c757c

Browse files
ENGCOM-3261: [BUGFIX] GITHUB-18264 Backport of #17799 for the 2.2 branch #18737
- Merge Pull Request #18737 from kanduvisla/magento2:GITHUB-18264 - Merged commits: 1. 36a3c26
2 parents 42eebbb + 36a3c26 commit b8c757c

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/Query

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function getQuery(array $dimensions, string $productType, array $entityId
190190
$specialFromExpr = "{$specialFrom} IS NULL OR {$specialFromDate} <= {$currentDate}";
191191
$specialToExpr = "{$specialTo} IS NULL OR {$specialToDate} >= {$currentDate}";
192192
$specialPriceExpr = $connection->getCheckSql(
193-
"{$specialPrice} IS NOT NULL AND {$specialFromExpr} AND {$specialToExpr}",
193+
"{$specialPrice} IS NOT NULL AND ({$specialFromExpr}) AND ({$specialToExpr})",
194194
$specialPrice,
195195
$maxUnsignedBigint
196196
);

0 commit comments

Comments
 (0)