\n";
@@ -57,12 +54,10 @@ function getPage($iUserID, $iGroupID) {
// page that comes up when there is nothing selected
function getPageNotSelected() {
global $default;
-
- $sToRender .= " \n";
- $sToRender .= "Sorry, Selection Failed\n";
+
+ $sToRender .= "
\n";
@@ -148,7 +139,9 @@ function getGroupDisplay($oGroup) {
if (Permission::userIsSystemAdministrator()) {
// if this is the system administrator, prepend group names with unit name
$oPatternListBox = & new PatternListBox($default->owl_groups_table, "name", "id", "fGroupID");
- //$oPatternListBox->setFromClause("INNER JOIN $default->");
+ $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)");
} 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");
@@ -167,9 +160,9 @@ function getGroupDisplay($oGroup) {
function getAssignButton($oUser) {
global $default;
if (!isset($oUser)) {
- return "