added float conversion, avoided error/warning
Details
Details
- Reviewers
alex
Preparations
- ensure that PHP version 7.x is used
- ensure that Measures System US/UK is selected (it is default for clean install)
Test
- login to the adn.console
- go to the Website & Content → Products section
- press New Product button the Products grid's toolbar, choose Tangible
- enter values for all required fields (Title, SKU)
- enter weight 1 in the pounds field, left ounces field empty
- press Save button in the Adding Product... form's toolbar
- confirm, that product is created and it's weight is 1 pound and 0 ounces
- press New Product button the Products grid's toolbar, choose Tangible
- enter values for all required fields (Title, SKU)
- enter weight 1 in the ounces field, left pounds field empty
- press Save button in the Adding Product... form's toolbar
- confirm, that product is created and it's weight is 0 pounds and 1 ounce
- go to the Logs & Reports → System Log section
- confirm, that no “A non-numeric value encountered” warning records in the System Log created while testing
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Branch
- /in-portal/branches/5.2.x
- Lint
Lint OK - Unit
No Unit Test Coverage - Build Status
Buildable 11063 Build 3763: arc lint + arc unit