FIX Duplicated state in gridfield

This commit is contained in:
Robbie Averill 2016-12-19 14:25:29 +13:00
parent cc17e81952
commit c927d7e29f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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'));
}
/**