From c8d7192266a4766bdfb6a211324f5a086b4ace03 Mon Sep 17 00:00:00 2001 From: jude86-7 Date: Fri, 11 May 2018 14:17:40 +0100 Subject: [PATCH] modification_author_id cannot be null 'Symphony Fatal Database Error: Column 'modification_author_id' cannot be null' #53 --- lib/class.xmlimporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class.xmlimporter.php b/lib/class.xmlimporter.php index 5eca2d8..83568ee 100644 --- a/lib/class.xmlimporter.php +++ b/lib/class.xmlimporter.php @@ -385,7 +385,7 @@ public function commit() { $entry->set('creation_date_gmt', $dateGMT); $entry->set('modification_date', $date); $entry->set('modification_date_gmt', $dateGMT); - + $entry->set('modification_author_id', is_null(Symphony::Engine()->Author()) ? '1' : Symphony::Engine()->Author()->get('id')); ### # Delegate: XMLImporterEntryPreCreate # Description: Just prior to creation of an Entry. Entry object provided