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:
parent
1c96affdde
commit
28213b9b9f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue