Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modification_author_id cannot be null #54

Merged
merged 2 commits into from
Jun 1, 2018

Conversation

jude86-7
Copy link
Contributor

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

'Symphony Fatal Database Error: Column 'modification_author_id' cannot
be null' symphonists#53
@@ -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'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Author is a static property, so the line should be

$entry->set('modification_author_id', !Symphony::Author() ? '1' : Symphony::Author()->get('id'));

@nitriques nitriques self-assigned this May 18, 2018
@jude86-7
Copy link
Contributor Author

Many thanks, I've updated the request to show the amended code.

@nitriques nitriques changed the base branch from master to integration June 1, 2018 20:35
@nitriques nitriques merged commit 2ef1525 into symphonists:integration Jun 1, 2018
@nitriques
Copy link
Member

Released as 3.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants