From 64fe3fbbbf4c05e95919b898d3ec8f849014dcd5 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 22 Mar 2019 21:42:22 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 6 ++++++ ayanova/src/api/gzvalidate.js | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) 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