[ bug #971 ] html.form.class.php select_contact with autocomplete do not
exclude id from exclude array
This commit is contained in:
parent
b1b68eafe3
commit
3db195cb48
@ -57,6 +57,7 @@ For users:
|
|||||||
- New: [ task #900 ] Review code of ficheinter.class.php
|
- New: [ task #900 ] Review code of ficheinter.class.php
|
||||||
- Fix: [Bug #958] LocalTax2 for Spain fails on Suppliers
|
- 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 #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:
|
For translators:
|
||||||
- Update language files.
|
- Update language files.
|
||||||
|
|||||||
@ -810,7 +810,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
|
|||||||
minLength: this.options.minLengthToAutocomplete,
|
minLength: this.options.minLengthToAutocomplete,
|
||||||
source: function( request, response ) {
|
source: function( request, response ) {
|
||||||
var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" );
|
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();
|
var text = $( this ).text();
|
||||||
if ( this.value && ( !request.term || matcher.test(text) ) )
|
if ( this.value && ( !request.term || matcher.test(text) ) )
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user