Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 301ae27
Author: Mateu Aguiló Bosch <[email protected]>
Date:   Thu Jun 16 08:14:40 2016 +0200

    [BUGFIX] Remove a pagination warning

    When the new pagination parameter comes back empty.
  • Loading branch information
Mateu Aguiló Bosch committed Jun 16, 2016
1 parent a9d0cc4 commit d2b4a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/resource/DataProvider/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ protected function parseRequestForListFilter() {
protected function parseRequestForListPagination() {
$pager_input = $this->getRequest()->getPagerInput();

$page = $pager_input['number'];
$page = isset($pager_input['number']) ? $pager_input['number'] : 1;
if (!ctype_digit((string) $page) || $page < 1) {
throw new BadRequestException('"Page" property should be numeric and equal or higher than 1.');
}
Expand Down

0 comments on commit d2b4a14

Please sign in to comment.