Skip to content

Commit

Permalink
Fix filter by multiple categories (joomla#19450)
Browse files Browse the repository at this point in the history
* Fix filter by multiple categories

* Remove debug code
  • Loading branch information
Thomas Hunziker authored and mbabker committed Jan 25, 2018
1 parent ce336b8 commit fab5637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_content/models/articles.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ protected function getListQuery()
'c.rgt <= ' . (int) $categoryTable->rgt . ')';
}

$query->where(implode(' OR ', $subCatItemsWhere));
$query->where('(' . implode(' OR ', $subCatItemsWhere) . ')');
}

// Case: Using only the by level filter
Expand Down

0 comments on commit fab5637

Please sign in to comment.