Skip to content

Commit 44462e3

Browse files
committed
Only export columns that are exportable.
1 parent d9ac72c commit 44462e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Services/DataTable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,9 @@ public function fastExcelCallback()
693693
return function ($row) {
694694
$mapped = [];
695695
foreach ($this->exportColumns() as $column) {
696-
$mapped[$column['title']] = $row[$column['data']];
696+
if ($column['exportable']) {
697+
$mapped[$column['title']] = $row[$column['name']];
698+
}
697699
}
698700

699701
return $mapped;

0 commit comments

Comments
 (0)