mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #259 from flashbackzoo/revert-256-pulls/fix-migration
Revert 256 pulls/fix migration
This commit is contained in:
commit
bfeddba670
@ -50,8 +50,11 @@ class BlogEntry extends BlogPost implements MigratableObject {
|
|||||||
|
|
||||||
$this->PublishDate = $this->Date;
|
$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->ClassName = 'BlogPost';
|
||||||
$this->RecordClassName = 'BlogPost';
|
$this->RecordClassName = 'BlogPost';
|
||||||
|
}
|
||||||
|
|
||||||
$this->write();
|
$this->write();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user