Skip to content

Commit

Permalink
fixed bug in DataGridPaginator with translator (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrparolek authored and paveljanda committed Aug 7, 2019
1 parent a4e392e commit 6782e95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2783,6 +2783,8 @@ public function getPerPage()

$per_page = $this->per_page ?: reset($items_per_page_list);

$items_per_page_list = array_keys($items_per_page_list);

if (($per_page !== 'all' && !in_array((int) $this->per_page, $items_per_page_list, true))
|| ($per_page === 'all' && !in_array($this->per_page, $items_per_page_list, true))) {
$per_page = reset($items_per_page_list);
Expand Down

0 comments on commit 6782e95

Please sign in to comment.