Skip to content

Commit 3f47be4

Browse files
committed
Update Export.php
fix for export grid with the number of lines > 1000 (collection not loaded second time)
1 parent 89e16e7 commit 3f47be4

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Backend/Block/Widget/Grid

1 file changed

+1
-0
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Export.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ public function _exportIterateCollection($callback, array $args)
257257
$break = false;
258258

259259
while ($break !== true) {
260+
$originalCollection->clear();
260261
$originalCollection->setPageSize($this->getExportPageSize());
261262
$originalCollection->setCurPage($page);
262263
$originalCollection->load();

0 commit comments

Comments
 (0)