h5p-editor-php-library
h5p-editor-php-library copied to clipboard
HFP-3852 Fix number field validation
When merged in, will fix the validate function of a number field to return true if the field is optional and nothing is set.
Currently, the validate function returns undefined if the field is optional and not value is set. One can work around this, of course, but it feels unintuitive if the return value is a boolean for when the value does not validate but undefined if it validates.