Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. diff --git a/Model/ResourceModel/Product/Indexer/Price/Query/BaseFinalPrice.php b/ResourceModel/Product/Indexer/Price/Query/BaseFinalPrice.php
  2. index 8428ff3688b2..0005ac8dea58 100644
  3. --- a/Model/ResourceModel/Product/Indexer/Price/Query/BaseFinalPrice.php
  4. +++ b/Model/ResourceModel/Product/Indexer/Price/Query/BaseFinalPrice.php
  5. @@ -190,7 +190,7 @@ public function getQuery(array $dimensions, string $productType, array $entityId
  6. $specialFromExpr = "{$specialFrom} IS NULL OR {$specialFromDate} <= {$currentDate}";
  7. $specialToExpr = "{$specialTo} IS NULL OR {$specialToDate} >= {$currentDate}";
  8. $specialPriceExpr = $connection->getCheckSql(
  9. - "{$specialPrice} IS NOT NULL AND {$specialFromExpr} AND {$specialToExpr}",
  10. + "{$specialPrice} IS NOT NULL AND ({$specialFromExpr}) AND ({$specialToExpr})",
  11. $specialPrice,
  12. $maxUnsignedBigint
  13. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement