Skip to content

Commit

Permalink
Merge pull request #148 from openstandia/MID-7131
Browse files Browse the repository at this point in the history
MID-7131 Fix NPE on home page
  • Loading branch information
skublik committed Jul 8, 2021
2 parents d493200 + 702e644 commit 03c25e7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ protected void initLayout() {
searchTypes.put(SearchType.TASKS, createStringResource("PageDashboard.search.tasks"));
}

for (SearchType type : SearchType.values()) {
if (searchTypes.containsKey(type)) {
selectedSearchType = type;
break;
}
}

TextField<String> searchInput = new TextField<>(ID_SEARCH_INPUT, Model.of(""));
searchInput.add(new VisibleBehaviour(() -> !searchTypes.isEmpty()));
searchInput.setOutputMarkupId(true);
Expand Down

0 comments on commit 03c25e7

Please sign in to comment.