Skip to content

Commit

Permalink
Take complete context for group lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Jan 10, 2017
1 parent 205d94b commit 56eb9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_fields/models/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public function getGroups()
$query->select('title AS text, id AS value, state');
$query->from('#__fields_groups');
$query->where('state IN (0,1)');
$query->where('context = ' . $db->quote($this->state->get('filter.component')));
$query->where('context = ' . $db->quote($this->state->get('filter.context')));
$query->where('access IN (' . implode(',', $viewlevels) . ')');

$db->setQuery($query);
Expand Down

0 comments on commit 56eb9b1

Please sign in to comment.