From 723694d883f59b66e44d7f783ab959a25abec53d Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 14 Mar 2003 08:30:11 +0000 Subject: [PATCH] corrected sysadmin group retrieval query --- presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupUI.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupUI.inc b/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupUI.inc index 37b8296..ed094a6 100644 --- a/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupUI.inc @@ -140,8 +140,8 @@ function getGroupDisplay($oGroup) { // if this is the system administrator, prepend group names with unit name $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); $oPatternListBox->setFromClause("LEFT OUTER JOIN groups_units_link GUL on ST.id=GUL.group_id " . - "INNER JOIN units_lookup UL on GUL.unit_id=UL.id"); - $oPatternListBox->setCompositeDisplayName("DISTINCT CONCAT(CONCAT(UL.name, '-'),ST.name)"); + "LEFT OUTER JOIN units_lookup UL on GUL.unit_id=UL.id"); + $oPatternListBox->setCompositeDisplayName("DISTINCT COALESCE(CONCAT(CONCAT(UL.name, '-'),ST.name),ST.name)"); } else if (Permission::userIsUnitAdministrator()) { // else if this is a unit administrator, only display the groups in your unit $oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID"); -- libgit2 0.21.4