IDEMPIERE-1540 Autocomplete for field type "Search" (#179)

Do not count duplicate record id more than once (some infowindow, like
bpinfo have multiple rows with same record id)
This commit is contained in:
hengsin 2020-07-26 16:23:28 +08:00 committed by GitHub
parent 1c96affdde
commit 28213b9b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ public class InfoListSubModel implements ListSubModel<ValueNamePair> {
List<Integer> keys = new ArrayList<Integer>();
for(int i = 0; i < rowCount; i++) {
Integer key = ip.getRowKeyAt(i);
if (key != null && key.intValue() > 0) {
if (key != null && key.intValue() > 0 && !keys.contains(key)) {
keys.add(key);
}
if (nRows > 0 && keys.size() >= nRows)