Skip to content

Commit

Permalink
removed limit of displayable values for lockup table
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jun 22, 2016
1 parent 336d883 commit 28ad3c8
Showing 1 changed file with 0 additions and 8 deletions.
Expand Up @@ -760,21 +760,13 @@ private List<String> prepareAutoCompleteList(String input, PrismObject<LookupTab
if(input == null || input.isEmpty()){
for(LookupTableRowType row: rows){
values.add(WebComponentUtil.getOrigStringFromPoly(row.getLabel()));

if(values.size() > 10){
return values;
}
}
} else {
for(LookupTableRowType row: rows){
if(WebComponentUtil.getOrigStringFromPoly(row.getLabel()) != null &&
WebComponentUtil.getOrigStringFromPoly(row.getLabel()).toLowerCase().contains(input.toLowerCase())){
values.add(WebComponentUtil.getOrigStringFromPoly(row.getLabel()));
}

if(values.size() > 10){
return values;
}
}
}

Expand Down

0 comments on commit 28ad3c8

Please sign in to comment.