From 71417c1990a8c0d86c53542b01864f33c730b864 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 20 Jun 2014 13:38:25 +0200 Subject: [PATCH] JS / getFData() : fixed bug permitting to support than method() return array of string --- public_html/includes/js/functions.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public_html/includes/js/functions.js b/public_html/includes/js/functions.js index d9d66471..337775bd 100644 --- a/public_html/includes/js/functions.js +++ b/public_html/includes/js/functions.js @@ -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');