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

Commit 76676ce

Browse files
committed
type casted $qty to float in \Magento\Catalog\Model\Product::setQty()
1 parent e65dac4 commit 76676ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ public function afterSave()
958958
public function setQty($qty)
959959
{
960960
if ($this->getData('qty') != $qty) {
961-
$this->setData('qty', $qty);
961+
$this->setData('qty', (float)$qty);
962962
$this->reloadPriceInfo();
963963
}
964964
return $this;

0 commit comments

Comments
 (0)