Skip to content

Commit

Permalink
Merge pull request #160 from fsateler/patch-2
Browse files Browse the repository at this point in the history
Clone pagination object before modifying it
  • Loading branch information
kartik-v authored Aug 4, 2016
2 parents 465ef5d + 8a16718 commit 0036de5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ExportMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ public function initExport()
{
$this->_provider = clone($this->dataProvider);
if ($this->batchSize && $this->_provider->pagination) {
$this->_provider->pagination = clone($this->dataProvider->pagination);
$this->_provider->pagination->pageSize = $this->batchSize;
} else {
$this->_provider->pagination = false;
Expand Down

0 comments on commit 0036de5

Please sign in to comment.