Business Partner Location : Error when selecting city from autocomplete list

Description

reported at:
https://groups.google.com/d/msg/idempiere/4wmel_tEbmQ/BCaAQQvkAe4J

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!

Environment

None

Attachments

1
  • 01 Dec 2014, 08:12 PM

Activity

Show:
Fixed

Details

Assignee

Reporter

Priority

Created December 1, 2014 at 8:12 PM
Updated May 4, 2015 at 5:43 PM
Resolved December 1, 2014 at 8:20 PM