[fix] true can be a real true sometime

This commit is contained in:
Laurent Peuch 2019-06-25 05:37:50 +02:00
parent 4fbda06fdb
commit 97836d7c5b

View file

@ -345,7 +345,7 @@
args[k].inputType = 'text';
args[k].isPassword = false;
args[k].isDisplayText = false;
args[k].required = (typeof v.optional !== 'undefined' && v.optional == "true") ? '' : 'required';
args[k].required = (typeof v.optional !== 'undefined' && (v.optional == "true" || v.optional == true)) ? '' : 'required';
args[k].attributes = "";
args[k].helpText = "";
args[k].helpLink = "";