Merge pull request #308 from silverstripe/fix-postsperpagemigration

FIX Explicitly set the PostsPerPage during migration
This commit is contained in:
Damian Mooyman 2015-10-30 13:23:08 +13:00
commit adbbf1ab00

View File

@ -50,6 +50,7 @@ class BlogHolder extends BlogTree implements MigratableObject {
if($this->ClassName === 'BlogHolder') { if($this->ClassName === 'BlogHolder') {
$this->ClassName = 'Blog'; $this->ClassName = 'Blog';
$this->RecordClassName = 'Blog'; $this->RecordClassName = 'Blog';
$this->PostsPerPage = 10;
$this->write(); $this->write();
} }