diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index e6ab25cb..ef488ae7 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -18,6 +18,12 @@ RETEST all validation now that the rules have been updated to the new format Also, is there anything pulled into the validate code directly that is already available off the "v" variable? - localization etc +GZ VALIDATE + - Add rule isNumeric + - Right now "count" is using the required rule which works but you can type anything in there including letters and shit + + + DATETIME - Validation diff --git a/ayanova/src/api/gzvalidate.js b/ayanova/src/api/gzvalidate.js index 6b87e23f..e9494c6d 100644 --- a/ayanova/src/api/gzvalidate.js +++ b/ayanova/src/api/gzvalidate.js @@ -85,13 +85,10 @@ export default { } var value = getControlValue(ctrl); - if (!isEmpty(value)) { + if (isEmpty(value)) { return false; } - if (_.isEmpty(value)) { - return false; - } if (value.length > max) { //get the localized rule text