JS / getFData() : fixed bug permitting to support than method() return array of string

This commit is contained in:
Benjamin Renard 2014-06-20 13:38:25 +02:00
parent b38bc3ce3c
commit 71417c1990

View file

@ -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');