Skip to content

Commit

Permalink
[ bug Dolibarr#971 ] html.form.class.php select_contact with autocomp…
Browse files Browse the repository at this point in the history
…lete do not

exclude id from exclude array
  • Loading branch information
FHenry committed Jul 8, 2013
1 parent b1b68ea commit 3db195c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -57,6 +57,7 @@ For users:
- New: [ task #900 ] Review code of ficheinter.class.php
- Fix: [Bug #958] LocalTax2 for Spain fails on Suppliers
- Fix: [ bug #972 ] Auto completion contact field do not take account the min caract number before search
-Fix : [ bug #971 ] html.form.class.php select_contact with autocomplete do not exclude id from exclude array

For translators:
- Update language files.
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/js/lib_head.js
Expand Up @@ -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 {
Expand Down

0 comments on commit 3db195c

Please sign in to comment.