Work on customreports

This commit is contained in:
Laurent Destailleur
2024-02-26 20:11:55 +01:00
parent 5fc6dbdf2f
commit b4ea234b75
4 changed files with 14 additions and 8 deletions

View File

@@ -526,7 +526,9 @@ function ajax_combobox($htmlname, $events = array(), $minLengthToAutocomplete =
if ($(data.element).attr("data-html") != undefined) {
/* If property html set, we decode html entities and use this. */
/* Note that HTML content must have been sanitized from js with dol_escape_htmltag(xxx, 0, 0, \'\', 0, 1) when building the select option. */
return htmlEntityDecodeJs($(data.element).attr("data-html"));
if (typeof htmlEntityDecodeJs === "function") {
return htmlEntityDecodeJs($(data.element).attr("data-html"));
}
}
return data.text;
},