Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1
-
Component/s: Configuration
-
Labels:None
Description
{6} in the configuration item paging.banner.full does not display the total number of pages (as it should according to the documentation), but the number of page links displayed in the banner.
Following is the correction for Pagination.java:
Object[] pageObjects = {
numberedPageString,
((Href) this.href.clone()).addParameter(this.pageParam, getFirst()),
((Href) this.href.clone()).addParameter(this.pageParam, getPrevious()),
((Href) this.href.clone()).addParameter(this.pageParam, getNext()),
((Href) this.href.clone()).addParameter(this.pageParam, getLast()),
this.currentPage,
/* (MVL) corrected: should be number of pages: new Integer(pages.size()) */
this.isLast() ? this.currentPage : this.lastPage };
Following is the correction for Pagination.java:
Object[] pageObjects = {
numberedPageString,
((Href) this.href.clone()).addParameter(this.pageParam, getFirst()),
((Href) this.href.clone()).addParameter(this.pageParam, getPrevious()),
((Href) this.href.clone()).addParameter(this.pageParam, getNext()),
((Href) this.href.clone()).addParameter(this.pageParam, getLast()),
this.currentPage,
/* (MVL) corrected: should be number of pages: new Integer(pages.size()) */
this.isLast() ? this.currentPage : this.lastPage };