Fixing bug with more link in index pages. NIHVIVO-3541
This commit is contained in:
parent
e0c5be5c42
commit
b9f3b35c7d
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ public class IndividualListController extends FreemarkerHttpServlet {
|
|||
for(int page = startPage; page <= endPage ; page++ ){
|
||||
records.add( new PageRecord( "page=" + page, Integer.toString(page), Integer.toString(page), selectedPage == page ) );
|
||||
}
|
||||
records.add( new PageRecord( "page="+ endPage+1, Integer.toString(endPage+1), "more...", false));
|
||||
records.add( new PageRecord( "page="+ (endPage+1), Integer.toString(endPage+1), "more...", false));
|
||||
}else if ( requiredPages > MAX_PAGES && selectedPage > requiredPages - MAX_PAGES ){
|
||||
//the selected page is in the end of the list
|
||||
int startPage = requiredPages - MAX_PAGES;
|
||||
|
|
Loading…
Add table
Reference in a new issue