From 5aab259a8f69eb3f14021b9462fe9df01574d457 Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Mon, 24 May 2021 18:34:55 +0100 Subject: [PATCH] Add slug and date to the export --- Exportit/ExportitController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Exportit/ExportitController.php b/Exportit/ExportitController.php index eb190ac..31249aa 100755 --- a/Exportit/ExportitController.php +++ b/Exportit/ExportitController.php @@ -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;