Skip to content

Commit

Permalink
fix for category filter
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeutz committed Jan 10, 2017
1 parent c1ebda1 commit b662491
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,11 @@ protected function getListQuery()
$query->where($db->qn($fields['id']) . ' > 1')
->where($db->qn('a.client_id') . ' = 0');
}
// If component item type is categories we need to remove all other component categories.
elseif ($extension === 'com_categories')

// If component item type is category we need to remove all other component categories.
if ($typeName === 'category')
{
$query->where($db->qn('a.extension') . ' = ' . $db->quote('X'));
$query->where($db->qn('a.extension') . ' = ' . $db->quote($extensionName));
}

// Filter on the language.
Expand Down

0 comments on commit b662491

Please sign in to comment.