From 6ccb1bb5df52b5ed8f0629bfb7490795e4bf792b Mon Sep 17 00:00:00 2001 From: Cam Findlay Date: Sun, 7 Jun 2015 17:20:13 +1200 Subject: [PATCH] FIX Ensures old blog 1.0 style author names are migrated into 2.0 AuthorNames Found that old 1.0 blog author names were not being migrated over to the new 2.0 AuthorNames (noted that there is now also a relationship between Member and BlogPost). The old 1.0 did not have this relationship so when migrating no authors are brought across from BlogEntry into BlogPost during the MigrationTask. --- code/compat/pages/BlogEntry.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/compat/pages/BlogEntry.php b/code/compat/pages/BlogEntry.php index 17b21ca..cd4e759 100644 --- a/code/compat/pages/BlogEntry.php +++ b/code/compat/pages/BlogEntry.php @@ -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') {