mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +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)) {
|
if ($type(ch)) {
|
||||||
try {
|
try {
|
||||||
val=data[meth](ch[2]);
|
val=data[meth](ch[2]);
|
||||||
|
if ($type(val)=='array') {
|
||||||
|
if (val.length==0) {
|
||||||
|
val=''
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
val=val[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
LSdebug('getFData() : '+meth+'() -> rater');
|
LSdebug('getFData() : '+meth+'() -> rater');
|
||||||
|
|
Loading…
Reference in a new issue