From 228e7159a58096f478dd863ce3252f1a0598c7e9 Mon Sep 17 00:00:00 2001 From: David Craig Date: Tue, 26 May 2015 11:40:39 +1200 Subject: [PATCH] Fix migration script --- code/compat/pages/BlogEntry.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/compat/pages/BlogEntry.php b/code/compat/pages/BlogEntry.php index 74b451d..b6ce218 100644 --- a/code/compat/pages/BlogEntry.php +++ b/code/compat/pages/BlogEntry.php @@ -50,10 +50,9 @@ class BlogEntry extends BlogPost implements MigratableObject { $this->PublishDate = $this->Date; - if($this->ClassName === 'BlogEntry') { - $this->ClassName = 'BlogPost'; - } - + $this->ClassName = 'BlogPost'; + $this->RecordClassName = 'BlogPost'; + $this->write(); }