Skip to content
Snippets Groups Projects
Commit f19b5cab authored by aydreeihn's avatar aydreeihn
Browse files

Merge remote-tracking branch 'kevin/issue/private-faq-search-sidebar' into...

Merge remote-tracking branch 'kevin/issue/private-faq-search-sidebar' into features_prs/develop-next
parents b2384fe9 09eb1f9c
No related branches found
Tags v2.0.0
No related merge requests found
......@@ -45,6 +45,7 @@ foreach (Topic::objects()
<div class="header"><?php echo __('Categories'); ?></div>
<?php
foreach (Category::objects()
->exclude(Q::any(array('ispublic'=>Category::VISIBILITY_PRIVATE)))
->annotate(array('faqs_count'=>SqlAggregate::count('faqs')))
->filter(array('faqs_count__gt'=>0))
as $C) { ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment