mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] true can be a real true sometime
This commit is contained in:
parent
4fbda06fdb
commit
97836d7c5b
1 changed files with 1 additions and 1 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Reference in a new issue