mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
JS / getFData() : fixed bug permitting to support than method() return array of string
This commit is contained in:
parent
b38bc3ce3c
commit
71417c1990
1 changed files with 8 additions and 0 deletions
|
@ -78,6 +78,14 @@ function getFData(format,data,meth) {
|
|||
if ($type(ch)) {
|
||||
try {
|
||||
val=data[meth](ch[2]);
|
||||
if ($type(val)=='array') {
|
||||
if (val.length==0) {
|
||||
val=''
|
||||
}
|
||||
else {
|
||||
val=val[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(e) {
|
||||
LSdebug('getFData() : '+meth+'() -> rater');
|
||||
|
|
Loading…
Reference in a new issue