PaginateController uses wrong offset
The PaginateController doesn't work with an offset set in the original query.
7 news records should be displayed with an offset of 2 (explanation could be that the 1st 2 records are rendered with a different plugin). itemsPerPage = 3
1st page should show:
2nd page should show
currently output is:
the possible offset of the query is not checked.
Updated by Bastian Waidelich over 10 years ago
- Category set to Widgets
- Branch set to v4 + v5
Note: The first part of the patch:
$this->numberOfPages = ceil((count($this->objects)-$query->getOffset()) / (integer)$this->configuration['itemsPerPage']);
is not needed anymore, as count() already retrieves the limited number of result (see #10956)