mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #269 from silverstripe/camfindlay-patch-1
FIX Ensures old blog 1.0 style author names are migrated into 2.0 AuthorNames
This commit is contained in:
commit
070978ecc0
@ -49,6 +49,7 @@ class BlogEntry extends BlogPost implements MigratableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->PublishDate = $this->Date;
|
$this->PublishDate = $this->Date;
|
||||||
|
$this->AuthorNames = $this->Author;
|
||||||
|
|
||||||
// If a user has subclassed BlogEntry, it should not be turned into a BlogPost.
|
// If a user has subclassed BlogEntry, it should not be turned into a BlogPost.
|
||||||
if($this->ClassName === 'BlogEntry') {
|
if($this->ClassName === 'BlogEntry') {
|
||||||
|
Loading…
Reference in New Issue
Block a user