Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: model with required field that defaults to 0 can't be saved
Number.prototype.validateRequiredInput() merely checked if the getter for the field returned a truthy value. That fails if the default happens to be zero (which is a falsy value). The fix is to simply check if the return value is a number.
- Loading branch information