FIX Explicitly set the PostsPerPage during migration

Tested against the silverstripe.org codebase, BlogHolder migration fails unless you set this.
This commit is contained in:
Cam Findlay 2015-10-29 13:10:10 +13:00
parent dde32209f8
commit 8a5c52a204

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();
} }