Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Publish Filtering and Empty Sections
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshoerrmann authored and nitriques committed Feb 19, 2015
1 parent 096eab7 commit a1cc97b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion symphony/content/content.publish.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ public function createFilteringInterface()
$section_id = SectionManager::fetchIDFromHandle($handle);
$section = SectionManager::fetch($section_id);
$filter = $section->get('filter');
$count = EntryManager::fetchCount($section_id);

if (isset($filter) && $filter !== 'no') {
if ($filter !== 'no' && $count > 1) {
// Get filtering fields
$this->getFilteringFields($section);

Expand Down

0 comments on commit a1cc97b

Please sign in to comment.