Fix default values display issue
This commit is contained in:
parent
1f782ec4c1
commit
0f4d3c8b04
|
@ -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,
|
||||
|
|
|
@ -1901,7 +1901,7 @@ sub attributes {
|
|||
default => 'Main',
|
||||
documentation => 'Handler type',
|
||||
},
|
||||
vhostAuthnLevel => { type => 'int', default => '' },
|
||||
vhostAuthnLevel => { type => 'int' },
|
||||
|
||||
# SecureToken parameters
|
||||
secureTokenAllowOnError => {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
@ -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
Loading…
Reference in New Issue
Block a user