Skip to content

Commit

Permalink
numeric ui, 0 is a valid value
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Sep 22, 2016
1 parent 5482666 commit 08385cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/uis/numeric.js
Expand Up @@ -66,7 +66,7 @@ define(['app', 'core/UIComponent', 'core/UIView', 'core/t'], function(app, UICom
Input: Input,
validate: function(value, options) {
// _.isEmpty (in the installed version) does not support INTs properly
if (options.schema.isRequired() && !value) {
if (options.schema.isRequired() && value != 0 && !value) {
return __t('this_field_is_required');
}
},
Expand Down

0 comments on commit 08385cb

Please sign in to comment.