2
0
forked from Wavyzz/dolibarr

[ bug #971 ] html.form.class.php select_contact with autocomplete do not

exclude id from exclude array
This commit is contained in:
Florian Henry
2013-07-08 12:51:17 +02:00
parent b1b68eafe3
commit 3db195cb48
2 changed files with 2 additions and 1 deletions

View File

@@ -810,7 +810,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
minLength: this.options.minLengthToAutocomplete,
source: function( request, response ) {
var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" );
response( select.children( "option" ).map(function() {
response( select.children( "option:enabled" ).map(function() {
var text = $( this ).text();
if ( this.value && ( !request.term || matcher.test(text) ) )
return {