From 2ef1525ddf92b493cfea6d68a3220a6dcfa35b6a Mon Sep 17 00:00:00 2001 From: jude86-7 Date: Fri, 1 Jun 2018 21:35:53 +0100 Subject: [PATCH] Set a proper Author Id (#54) * modification_author_id cannot be null 'Symphony Fatal Database Error: Column 'modification_author_id' cannot be null' #53 * author static property, change required --- 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 1451b71..dd7e8e2 100644 --- a/lib/class.xmlimporter.php +++ b/lib/class.xmlimporter.php @@ -432,7 +432,7 @@ public function commit($status) { $entry->set('creation_date_gmt', $dateGMT); $entry->set('modification_date', $date); $entry->set('modification_date_gmt', $dateGMT); - + $entry->set('modification_author_id', !Symphony::Author() ? '1' : Symphony::Author()->get('id')); ### # Delegate: XMLImporterEntryPreCreate # Description: Just prior to creation of an Entry. Entry object provided