// default values\r
ArrayList<String> repositories = new ArrayList<String>();\r
String query = "";\r
+ boolean allRepos = false;\r
+\r
int page = 1;\r
int pageSize = app().settings().getInteger(Keys.web.itemsPerPage, 50);\r
\r
List<String> list = StringUtils.getStringsFromValue(value);\r
repositories.addAll(list);\r
}\r
-
- if (params.containsKey("allrepos")) {\r
+\r
+ allRepos = params.getAsBoolean("allrepos", false);
+ if (allRepos) {\r
repositories.addAll(availableRepositories);\r
}\r
\r
// search form\r
final Model<String> queryModel = new Model<String>(query);\r
final Model<ArrayList<String>> repositoriesModel = new Model<ArrayList<String>>(searchRepositories);\r
- final Model<Boolean> allreposModel = new Model<Boolean>(params != null && params.containsKey("allrepos"));\r
+ final Model<Boolean> allreposModel = new Model<Boolean>(allRepos);\r
SessionlessForm<Void> form = new SessionlessForm<Void>("searchForm", getClass()) {\r
\r
private static final long serialVersionUID = 1L;\r