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

Commit 237f531

Browse files
author
Stanislav Idolov
authored
ENGCOM-3230: [BACKPORT] type casted $qty to float in \Magento\Catalog\Model\Produc… #18424
2 parents 47253e8 + 873e777 commit 237f531

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ public function setQty($qty)
985985
*/
986986
public function getQty()
987987
{
988-
return $this->getData('qty');
988+
return (float)$this->getData('qty');
989989
}
990990

991991
/**

0 commit comments

Comments
 (0)