From 8a5c52a20457c4d35c63a0998a3b567317d88412 Mon Sep 17 00:00:00 2001 From: Cam Findlay Date: Thu, 29 Oct 2015 13:10:10 +1300 Subject: [PATCH] FIX Explicitly set the PostsPerPage during migration Tested against the silverstripe.org codebase, BlogHolder migration fails unless you set this. --- code/compat/pages/BlogHolder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/compat/pages/BlogHolder.php b/code/compat/pages/BlogHolder.php index 04dd093..86b8cdd 100644 --- a/code/compat/pages/BlogHolder.php +++ b/code/compat/pages/BlogHolder.php @@ -50,6 +50,7 @@ class BlogHolder extends BlogTree implements MigratableObject { if($this->ClassName === 'BlogHolder') { $this->ClassName = 'Blog'; $this->RecordClassName = 'Blog'; + $this->PostsPerPage = 10; $this->write(); }