Skip to content

Commit

Permalink
fix: exports always including whole data set regardless of export str…
Browse files Browse the repository at this point in the history
…ategy
  • Loading branch information
Kreyu committed Nov 8, 2023
1 parent 83b66e3 commit 6ce880c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Type/DataTableType.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ private function createExportHeaderRowView(DataTableView $view, DataTableInterfa

private function createExportValueRowsViews(DataTableView $view, DataTableInterface $dataTable, array $columns): iterable
{
$items = $dataTable->getQuery()->getItems();
if ($dataTable->getConfig()->isPaginationEnabled()) {
$items = $dataTable->getPagination()->getItems();
} else {
$items = $dataTable->getQuery()->getItems();
}

foreach ($items as $index => $data) {
$valueRowView = new ValueRowView($view, $index, $data);
Expand Down

0 comments on commit 6ce880c

Please sign in to comment.