From c927d7e29f1d42b0abc803b62276b6e814e46868 Mon Sep 17 00:00:00 2001 From: Robbie Averill <robbie@silverstripe.com> Date: Mon, 19 Dec 2016 14:25:29 +1300 Subject: [PATCH] FIX Duplicated state in gridfield --- src/Forms/GridField/GridFieldConfig_BlogPost.php | 2 +- src/Model/BlogFilter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/GridField/GridFieldConfig_BlogPost.php b/src/Forms/GridField/GridFieldConfig_BlogPost.php index ccc5de6..74d4a36 100644 --- a/src/Forms/GridField/GridFieldConfig_BlogPost.php +++ b/src/Forms/GridField/GridFieldConfig_BlogPost.php @@ -19,7 +19,7 @@ class GridFieldConfig_BlogPost extends GridFieldConfig_Lumberjack { parent::__construct($itemsPerPage); - $this->removeComponentsByType('GridFieldSiteTreeState'); + $this->removeComponentsByType('SilverStripe\\Lumberjack\\Forms\\GridFieldSiteTreeState'); $this->addComponent(new GridFieldBlogPostState()); } } diff --git a/src/Model/BlogFilter.php b/src/Model/BlogFilter.php index 8896004..48c1c37 100644 --- a/src/Model/BlogFilter.php +++ b/src/Model/BlogFilter.php @@ -59,7 +59,7 @@ class BlogFilter extends Lumberjack */ protected function subclassForBlog() { - return in_array(get_class($this->owner), ClassInfo::subclassesFor(Blog::class)); + return in_array(get_class($this->owner), ClassInfo::subclassesFor('SilverStripe\\Blog\\Model\\Blog')); } /**