Merge branch 'develop' into generic_card_fix

This commit is contained in:
vabene1111
2021-09-11 13:09:02 +02:00
committed by GitHub
16 changed files with 493 additions and 157 deletions

View File

@@ -214,12 +214,23 @@ function formatParam(config, value) {
case 'type':
switch(v) {
case 'string':
if (value !== undefined){
if (Array.isArray(value)) {
let tmpValue = []
value.forEach(x => tmpValue.push(String(x)))
value = tmpValue
} else if (value !== undefined) {
value = String(value)
}
break;
case 'integer':
value = parseInt(value)
if (Array.isArray(value)) {
let tmpValue = []
value.forEach(x => tmpValue.push(parseInt(x)))
value = tmpValue
} else if (value !== undefined) {
value = parseInt(value)
}
break;
}
break;
}