SEBSERV-384 fixed
This commit is contained in:
parent
9032549f59
commit
e63a09847b
1 changed files with 5 additions and 1 deletions
|
@ -412,9 +412,13 @@ public class ConfigurationNodeController extends EntityController<ConfigurationN
|
||||||
if (attrs.size() < end) {
|
if (attrs.size() < end) {
|
||||||
end = attrs.size();
|
end = attrs.size();
|
||||||
}
|
}
|
||||||
|
int numOfPages = attrs.size() / this.paginationService.getPageSize(pageSize);
|
||||||
|
if (attrs.size() % this.paginationService.getPageSize(pageSize) != 0) {
|
||||||
|
numOfPages++;
|
||||||
|
}
|
||||||
|
|
||||||
return new Page<>(
|
return new Page<>(
|
||||||
attrs.size() / this.paginationService.getPageSize(pageSize),
|
numOfPages,
|
||||||
this.paginationService.getPageNumber(pageNumber),
|
this.paginationService.getPageNumber(pageNumber),
|
||||||
sort,
|
sort,
|
||||||
attrs.subList(start, end));
|
attrs.subList(start, end));
|
||||||
|
|
Loading…
Reference in a new issue