Skip to content

Commit

Permalink
ENGCOM-3230: [BACKPORT] type casted $qty to float in \Magento\Catalog…
Browse files Browse the repository at this point in the history
…\Model\Produc… magento#18424
  • Loading branch information
Stanislav Idolov authored Oct 23, 2018
2 parents 47253e8 + 873e777 commit 237f531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ public function setQty($qty)
*/
public function getQty()
{
return $this->getData('qty');
return (float)$this->getData('qty');
}

/**
Expand Down

0 comments on commit 237f531

Please sign in to comment.