Business Partner Location : Error when selecting city from autocomplete list

105 views
Skip to first unread message

Gabriel Schneider

unread,
Nov 27, 2014, 11:52:51 AM11/27/14
to idem...@googlegroups.com
Hi community,


I found a error on working with Location dialog that we can reproduce at https://demo.idempiere.com/webui/

The main problem is that the autocomplete list returns a wrong value.

Steps to reproduce are below:

- Login to GardenWorld
- Open Country Region and City
- Now, open the Business Partner window and create a new record.
- Navigate to Tab 'Location' and create a new record. 
* Open Location popUp
* Selection Country "BRAZIL"
* Selection the Region "SP"
* in field 'City' start to type the chars "Al" and a list will appear
* clear all the content from the City field, the list will be updated showing the "..." more itens
* now you will not be able to select one city. The list returns a wrong index, and the problem occurs


Here I resolved with the attached patch, that in summary remove a sort from the AutoComplete class.

Please, can somebody confirm if this is a bug or not  ?

Thank you!
AutoComplete.patch

Marco Longo

unread,
Nov 27, 2014, 1:53:18 PM11/27/14
to idem...@googlegroups.com
Hi Gabriel ,
i founded the same problem last week but i thought that was a "my problem" or data inconsistent.

thanks 
Marco

Carlos Antonio Ruiz Gómez

unread,
Nov 28, 2014, 7:01:51 PM11/28/14
to idem...@googlegroups.com
Gabriel, I was not able to reproduce the issue.

Followed the same steps you described on https://demo.idempiere.com/webui/

> - Now, open the Business Partner window and create a new record.
> - Navigate to Tab 'Location' and create a new record.
> * Open Location popUp
> * Selection Country "BRAZIL"
> * Selection the Region "SP"
> * in field 'City' start to type the chars "Al" and a list will appear
> * clear all the content from the City field, the list will be updated showing the "..." more itens

In my tests here it shows the "..." and below 8 cities starting from "Alambari" and ending with "Águas de São Pedro"

> * now you will not be able to select one city. The list returns a wrong index, and the problem occurs

I can select other cities, search again, etc.

Regards,

Carlos Ruiz

Gabriel Schneider

unread,
Dec 1, 2014, 5:51:34 AM12/1/14
to idem...@googlegroups.com
correct Mr. Carlos, note that when you select " Alambari " display "Aguas de Lindóia", is where the possible error occurs..

Carlos Antonio Ruiz Gomez

unread,
Dec 1, 2014, 3:13:53 PM12/1/14
to idem...@googlegroups.com

Gabriel Schneider

unread,
Dec 1, 2014, 4:22:21 PM12/1/14
to idem...@googlegroups.com
Hi Carlos, 

i saw your commit with the bug fx / resolution.

thank you!! :)
Reply all
Reply to author
Forward
0 new messages