Add validation to importers to fix invalid/empty columns #222
This commit is contained in:
@@ -53,7 +53,7 @@ class ExportService extends Service
|
||||
$writer = $this->openCsv($path);
|
||||
|
||||
// Write out the header first
|
||||
$writer->insertOne($exporter->getColumns());
|
||||
$writer->insertOne(array_keys($exporter->getColumns()));
|
||||
|
||||
// Write the rest of the rows
|
||||
foreach ($collection as $row) {
|
||||
|
||||
Reference in New Issue
Block a user