Closed mattstein closed 4 years ago
When attempting to save a new product without entering its price, a type error is returned instead of the validation error I’d expect:
TypeError Return value of craft\digitalproducts\elements\Product::getPrice() must be of the type float, string returned
Looks like it needs to be cast as a float for MySQL or that a null value needs to be accounted for.
null
^ Tested + submitted a stunning PR.
Description
When attempting to save a new product without entering its price, a type error is returned instead of the validation error I’d expect:
Looks like it needs to be cast as a float for MySQL or that a
null
value needs to be accounted for.Steps to reproduce
Additional info