Skip to content
Snippets Groups Projects
Commit 788b2cf2 authored by Mark M. Florida's avatar Mark M. Florida
Browse files

XNAT-4242: Validation type that would *optionally* allow empty fields, would...

XNAT-4242: Validation type that would *optionally* allow empty fields, would instead *require* them to be empty.
parent 385657fc
No related branches found
No related tags found
No related merge requests found
...@@ -536,6 +536,7 @@ var XNAT = getObject(XNAT); ...@@ -536,6 +536,7 @@ var XNAT = getObject(XNAT);
// set 'allowEmpty' flag // set 'allowEmpty' flag
if (type === 'allow-empty') { if (type === 'allow-empty') {
this.allowEmpty = true; this.allowEmpty = true;
return this;
} }
if (typeof type === 'string') { if (typeof type === 'string') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment