Skip to content

Commit

Permalink
Fixed #2687
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Apr 7, 2018
1 parent 60a72c5 commit 7911b7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Fixed an error that could occur in the Control Panel if any plugins with licensing issues were installed. ([#2691](https://github.com/craftcms/cms/pull/2691))
- Fixed a bug on the Plugin Store’s Payment screen where the “Use a new credit card” radio option would not get selected automatically even if it was the only one available.
- Fixed a bug where `craft\web\assets\vue\VueAsset` didn’t respect the `useCompressedJs` config setting.
- Fixed an error that occurred when saving a Single entry over Ajax. ([#2687](https://github.com/craftcms/cms/issues/2687))

## 3.0.1 - 2018-04-04

Expand Down
5 changes: 4 additions & 1 deletion src/controllers/EntriesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,10 @@ public function actionSaveEntry()
$return['cpEditUrl'] = $entry->getCpEditUrl();
}

$return['authorUsername'] = $entry->getAuthor()->username;
if (($author = $entry->getAuthor()) !== null) {
$return['authorUsername'] = $author->username;
}

$return['dateCreated'] = DateTimeHelper::toIso8601($entry->dateCreated);
$return['dateUpdated'] = DateTimeHelper::toIso8601($entry->dateUpdated);
$return['postDate'] = ($entry->postDate ? DateTimeHelper::toIso8601($entry->postDate) : null);
Expand Down

0 comments on commit 7911b7b

Please # to comment.