We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76676ce commit 2ad1031Copy full SHA for 2ad1031
app/code/Magento/Catalog/Model/Product.php
@@ -958,7 +958,7 @@ public function afterSave()
958
public function setQty($qty)
959
{
960
if ($this->getData('qty') != $qty) {
961
- $this->setData('qty', (float)$qty);
+ $this->setData('qty', $qty);
962
$this->reloadPriceInfo();
963
}
964
return $this;
@@ -971,7 +971,7 @@ public function setQty($qty)
971
*/
972
public function getQty()
973
974
- return $this->getData('qty');
+ return (float)$this->getData('qty');
975
976
977
/**
0 commit comments