Skip to content

Commit 9708638

Browse files
author
Oleksii Korshenko
authored
MAGETWO-67509: Decimal to Float Convertion #9266
2 parents 19d8405 + a0a08d1 commit 9708638

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
@@ -72,7 +72,7 @@ public function __construct(
7272
Session $customerSession,
7373
GroupManagementInterface $groupManagement
7474
) {
75-
$quantity = $quantity ?: 1;
75+
$quantity = floatval($quantity) ? $quantity : 1;
7676
parent::__construct($saleableItem, $quantity, $calculator, $priceCurrency);
7777
$this->customerSession = $customerSession;
7878
$this->groupManagement = $groupManagement;

0 commit comments

Comments
 (0)