From 97836d7c5b52e862626e8ea250f2b35cd571ce0e Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 25 Jun 2019 05:37:50 +0200 Subject: [PATCH] [fix] true can be a real true sometime --- src/js/yunohost/controllers/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/yunohost/controllers/apps.js b/src/js/yunohost/controllers/apps.js index 74eaf76a..3980cb48 100644 --- a/src/js/yunohost/controllers/apps.js +++ b/src/js/yunohost/controllers/apps.js @@ -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 = "";