Skip to content

Commit

Permalink
Fix fields
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed May 22, 2017
1 parent cb7e5a2 commit f1d63f3
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions administrator/components/com_fields/Model/Fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,40 +219,7 @@ protected function getListQuery()
$categories = array_unique($categories);

// Join over the assigned categories
$query->join('LEFT', $db->quoteName('#__fields_categories') . ' AS fc ON fc.field_id = a.id')
->group(
array(
'a.id',
'a.title',
'a.alias',
'a.checked_out',
'a.checked_out_time',
'a.note',
'a.state',
'a.access',
'a.created_time',
'a.created_user_id',
'a.ordering',
'a.language',
'a.fieldparams',
'a.params',
'a.type',
'a.default_value',
'a.context',
'a.group_id',
'a.label',
'a.description',
'a.required',
'l.title',
'l.image',
'uc.name',
'ag.title',
'ua.name',
'g.title',
'g.access',
'g.state'
)
);
$query->join('LEFT', $db->quoteName('#__fields_categories') . ' AS fc ON fc.field_id = a.id');

if (in_array('0', $categories))
{
Expand Down

0 comments on commit f1d63f3

Please sign in to comment.