Skip to content

Commit

Permalink
modification_author_id cannot be null
Browse files Browse the repository at this point in the history
'Symphony Fatal Database Error: Column 'modification_author_id' cannot
be null' symphonists#53
  • Loading branch information
jude86-7 committed May 11, 2018
1 parent 586a11a commit c8d7192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class.xmlimporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8d7192

Please sign in to comment.