Skip to content

Commit

Permalink
NAS-2642: Default page value is "1" instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
Knud Åge Hansen committed Sep 27, 2017
1 parent ecea3df commit dfb2eb2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -961,9 +961,9 @@ private String getParameterPage(HttpServletRequest req, String pageString) {
String tmpStr;
tmpStr = req.getParameter("q");
if (tmpStr != null && tmpStr.length() > 0 && !tmpStr.equalsIgnoreCase(".*")) {
pageString = tmpStr;
return tmpStr;
}
return pageString;
return "1";
}

private long getLinesPerPage(HttpServletRequest req, long linesPerPage) {
Expand Down

0 comments on commit dfb2eb2

Please sign in to comment.