From ea6b046f82c7fcd9b6006862b9fe7ce8d1fd6320 Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Fri, 30 Oct 2015 16:00:46 -0300 Subject: [PATCH] Fix issue causing blogs to only work publicly when nested under another blog --- code/extensions/BlogFilter.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/extensions/BlogFilter.php b/code/extensions/BlogFilter.php index a34a813..e747412 100644 --- a/code/extensions/BlogFilter.php +++ b/code/extensions/BlogFilter.php @@ -8,6 +8,12 @@ * @subpackage blog */ class BlogFilter extends Lumberjack { + public static function get_extra_config($class, $extension, $args) { + return array( + 'has_one' => array('Parent' => 'SiteTree') + ); + } + /** * {@inheritdoc} */