Fix js null error

This commit is contained in:
Laurent Destailleur 2022-11-25 23:47:17 +01:00
parent b04d4dd867
commit f79778db40

View File

@ -130,7 +130,10 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption = '', $minLen
$("#search_'.$htmlnamejquery.'").val(item.value);
$("#'.$htmlnamejquery.'").val(item.key).trigger("change");
}
var label = item.label.toString();
var label = "";
if (item.label != null) {
label = item.label.toString();
}
var update = {};
if (options.update) {
$.each(options.update, function(key, value) {