Skip to content

Commit

Permalink
JSF is setting page to "0" on Glassfish 5. Why? #4217
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Oct 27, 2017
1 parent f764909 commit 6f72baa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ public void search(boolean onlyDataRelatedToMe) {
String allTypesFilterQuery = SearchFields.TYPE + ":(dataverses OR datasets OR files)";
filterQueriesFinalAllTypes.add(allTypesFilterQuery);

if (page == 0) {
logger.info("Variable 'page' was zero. Changing it one. What does this have to do with upgrading to Glassfish 5?");
page = 1;
}
int paginationStart = (page - 1) * paginationGuiRows;
/**
* @todo
Expand Down

0 comments on commit 6f72baa

Please sign in to comment.