diff --git a/src/Model/Blog/Category/BlogCategoryRepository.php b/src/Model/Blog/Category/BlogCategoryRepository.php index 3466f1ce55..15e4c6389d 100644 --- a/src/Model/Blog/Category/BlogCategoryRepository.php +++ b/src/Model/Blog/Category/BlogCategoryRepository.php @@ -70,7 +70,7 @@ public function getAllBlogCategoriesOfCollapsedTree(array $selectedBlogCategorie ->select('bc, bcd, bct') ->join('bc.domains', 'bcd') ->join('bc.translations', 'bct') - ->where('bc.parent IN (:openedParentIds)') + ->where('bc.parent IN (:openedParentIds) OR bc.parent IS NULL') ->setParameter('openedParentIds', $openedParentIds) ->getQuery() ->getResult();