Fix default values display issue

This commit is contained in:
Christophe Maudoux 2019-08-13 23:24:18 +02:00
parent 1f782ec4c1
commit 0f4d3c8b04
9 changed files with 8 additions and 10 deletions

View File

@ -3640,8 +3640,7 @@ qr/^(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-
'type' => 'text'
},
'vhostAuthnLevel' => {
'default' => '',
'type' => 'int'
'type' => 'int'
},
'vhostHttps' => {
'default' => -1,

View File

@ -1901,7 +1901,7 @@ sub attributes {
default => 'Main',
documentation => 'Handler type',
},
vhostAuthnLevel => { type => 'int', default => '' },
vhostAuthnLevel => { type => 'int' },
# SecureToken parameters
secureTokenAllowOnError => {

View File

@ -351,7 +351,7 @@ llapp.controller 'TreeCtrl', [
node.data = node['default']
else
node.data = data.value
if node.data.toString().match /_Hidden_$/
if (node.data and node.data.toString().match /_Hidden_$/)
node.type = 'text'
node.data = '######'
# Cast int as int (remember that booleans are int for Perl)

View File

@ -1200,7 +1200,6 @@ function templates(tpl,key) {
"type" : "select"
},
{
"default" : "",
"get" : tpl+"s/"+key+"/"+"vhostAuthnLevel",
"id" : tpl+"s/"+key+"/"+"vhostAuthnLevel",
"title" : "vhostAuthnLevel",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -442,7 +442,7 @@ This file contains:
} else {
node.data = data.value;
}
if (node.data.toString().match(/_Hidden_$/)) {
if (node.data && node.data.toString().match(/_Hidden_$/)) {
node.type = 'text';
node.data = '######';
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long