Merge pull request #6840 from opf/core/fix/29052/table-pagination-cache

[29052] Only take cached perPage if it is still valid

[ci skip]
pull/6842/head
Oliver Günther 6 years ago committed by GitHub
commit 083ff712eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      frontend/src/app/components/table-pagination/pagination-service.ts

@ -71,7 +71,7 @@ export class PaginationService {
if (value !== undefined) {
const perPage = parseInt(value, 10);
if (perPage > 0) {
if (perPage > 0 && (initialPageOptions.length === 0 || initialPageOptions.indexOf(perPage) !== -1)) {
return perPage;
}
}

Loading…
Cancel
Save