Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit bc54939

Browse files
Oleksii Korshenkoirenelagno
authored andcommitted
MAGETWO-75453: [Backport] - Decimal to Float Convertion #9266 - for 2.2
- reverted original fix due to broken logic in other parts or the system - added local fix for Tier Price
1 parent 5f8fab5 commit bc54939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Pricing/Price/TierPrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct(
8282
GroupManagementInterface $groupManagement,
8383
CustomerGroupRetrieverInterface $customerGroupRetriever = null
8484
) {
85-
$quantity = $quantity ?: 1;
85+
$quantity = floatval($quantity) ? $quantity : 1;
8686
parent::__construct($saleableItem, $quantity, $calculator, $priceCurrency);
8787
$this->customerSession = $customerSession;
8888
$this->groupManagement = $groupManagement;

0 commit comments

Comments
 (0)