Skip to content

Commit

Permalink
Fix filter by multiple categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Jan 25, 2018
1 parent 128a4d4 commit 7e36ab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -379,7 +379,7 @@ protected function getListQuery()
$orderDirn = $this->state->get('list.direction', 'DESC');

$query->order($db->escape($orderCol) . ' ' . $db->escape($orderDirn));

$tmp = (string) ($query);
return $query;
}

Expand Down

0 comments on commit 7e36ab9

Please sign in to comment.