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:
Christopher Pitt 2015-06-07 17:29:24 +12:00
commit 070978ecc0

View File

@ -49,6 +49,7 @@ class BlogEntry extends BlogPost implements MigratableObject {
}
$this->PublishDate = $this->Date;
$this->AuthorNames = $this->Author;
// If a user has subclassed BlogEntry, it should not be turned into a BlogPost.
if($this->ClassName === 'BlogEntry') {