From bbc580d163d69693f6b7e617768cfe871e96dddc Mon Sep 17 00:00:00 2001 From: Deesen Date: Mon, 12 Dec 2016 06:05:25 +0100 Subject: [PATCH] #1091 F: Show also uncategorized elements in category-view --- manager/actions/resources.static.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/actions/resources.static.php b/manager/actions/resources.static.php index cd14b95151..c4e0af8154 100644 --- a/manager/actions/resources.static.php +++ b/manager/actions/resources.static.php @@ -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" );