mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUG Fix blogtree with non-blogpost children breaking on migration
This commit is contained in:
parent
7f5bf0cda9
commit
0c6f5122ed
@ -3,7 +3,7 @@
|
|||||||
/**
|
/**
|
||||||
* @deprecated since version 2.0
|
* @deprecated since version 2.0
|
||||||
*/
|
*/
|
||||||
class BlogTree extends Blog implements MigratableObject {
|
class BlogTree extends Page implements MigratableObject {
|
||||||
|
|
||||||
private static $hide_ancestor = 'BlogTree';
|
private static $hide_ancestor = 'BlogTree';
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ class BlogTree extends Blog implements MigratableObject {
|
|||||||
|
|
||||||
public function up() {
|
public function up() {
|
||||||
if($this->ClassName === 'BlogTree') {
|
if($this->ClassName === 'BlogTree') {
|
||||||
$this->ClassName = 'Blog';
|
$this->ClassName = 'Page';
|
||||||
$this->write();
|
$this->write();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -28,5 +28,5 @@ class BlogTree extends Blog implements MigratableObject {
|
|||||||
/**
|
/**
|
||||||
* @deprecated since version 2.0
|
* @deprecated since version 2.0
|
||||||
*/
|
*/
|
||||||
class BlogTree_Controller extends Blog_Controller {
|
class BlogTree_Controller extends Page_Controller {
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user