Skip to content

Commit

Permalink
modxcms#1091 F: Show also uncategorized elements in category-view
Browse files Browse the repository at this point in the history
  • Loading branch information
Deesen committed Dec 12, 2016
1 parent 252d2f7 commit bbc580d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/actions/resources.static.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ function unlockElement(type, id, domEl) {
$nameField = ($v['table'] == 'site_templates')? 'templatename': 'name';
$pluginsql = $v['table'] == 'site_plugins' ? $v['table'].'.disabled, ' : '';
$rs = $modx->db->select(
"{$pluginsql} {$nameField} as name, {$v['table']}.id, description, locked, categories.category, categories.id as catid",
"{$pluginsql} {$nameField} as name, {$v['table']}.id, description, locked, IF(isnull(categories.category), '{$_lang['no_category']}',categories.category) as category, categories.id as catid",
$modx->getFullTableName($v['table'])." AS {$v['table']}
RIGHT JOIN ".$modx->getFullTableName('categories')." AS categories ON {$v['table']}.category = categories.id",
LEFT JOIN ".$modx->getFullTableName('categories')." AS categories ON {$v['table']}.category = categories.id",
"",
"5,1"
);
Expand Down

0 comments on commit bbc580d

Please sign in to comment.