From 4ab5de839e389ebe8de21385cc993af4e1bdacd1 Mon Sep 17 00:00:00 2001 From: David Craig Date: Tue, 26 May 2015 12:36:20 +1200 Subject: [PATCH] Fix migration --- code/compat/pages/BlogEntry.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/compat/pages/BlogEntry.php b/code/compat/pages/BlogEntry.php index 74b451d..17b21ca 100644 --- a/code/compat/pages/BlogEntry.php +++ b/code/compat/pages/BlogEntry.php @@ -50,8 +50,10 @@ class BlogEntry extends BlogPost implements MigratableObject { $this->PublishDate = $this->Date; + // If a user has subclassed BlogEntry, it should not be turned into a BlogPost. if($this->ClassName === 'BlogEntry') { $this->ClassName = 'BlogPost'; + $this->RecordClassName = 'BlogPost'; } $this->write();