diff --git a/htdocs/lib/ajax.lib.php b/htdocs/lib/ajax.lib.php index d7ab2a135d3..cfc508f383b 100644 --- a/htdocs/lib/ajax.lib.php +++ b/htdocs/lib/ajax.lib.php @@ -148,23 +148,8 @@ function ajax_multiautocompleter($htmlname,$fields,$url,$option='') jQuery("input#'.$htmlname.'").autocomplete({ source: function( request, response ) { - jQuery.get("'.$url.($option?'?'.$option:'').'", { '.$htmlname.': request.term }, function(data){ - response( jQuery.map( data, function( item ) { - if (data.length == 1) { - jQuery("#'.$htmlname.'").val(item.value); - for (i=0;i