Skip to content

Commit

Permalink
Merge pull request #3 from simonhamp/patch-1
Browse files Browse the repository at this point in the history
Add slug and date to the export
  • Loading branch information
goellner authored May 24, 2021
2 parents c24f882 + 5aab259 commit d43a387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Exportit/ExportitController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ private function insertHeaders($handle)
$fieldset_content = $fieldset->fields();
$header_data = array_keys($fieldset_content);

// Adding title field, since it is not defined in fieldset
array_unshift($header_data, 'title');
// Explicitly adding some fields that may not be defined in fieldset
array_unshift($header_data, 'title', 'slug', 'date');

$this->csv_header = $header_data;

Expand Down

0 comments on commit d43a387

Please sign in to comment.