Skip to content

Commit

Permalink
Set a proper Author Id (#54)
Browse files Browse the repository at this point in the history
* modification_author_id cannot be null

'Symphony Fatal Database Error: Column 'modification_author_id' cannot
be null' #53

* author static property, change required
  • Loading branch information
jude86-7 authored and nitriques committed Jun 1, 2018
1 parent a5d8d3e commit 2ef1525
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 @@ -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
Expand Down

0 comments on commit 2ef1525

Please sign in to comment.