fix export excel

This commit is contained in:
2025-12-17 15:20:51 -03:00
parent e5ea38c973
commit 6d5524a215

View File

@@ -140,7 +140,7 @@ $output = fopen('php://output', 'w');
fwrite($output, "\xEF\xBB\xBF");
// Write CSV header row
fputcsv($output, $columns_to_export);
fputcsv($output, $columns_to_export, ",", "\"", "\\");
// Write all rows
foreach ($allRows as $row) {
@@ -152,7 +152,7 @@ foreach ($allRows as $row) {
}
$exportRow[] = $val;
}
fputcsv($output, $exportRow);
fputcsv($output, $exportRow, ",", "\"", "\\");
}
fclose($output);