Code

Added uid to the member listing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Apr 2010 13:18:46 +0000 (13:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Apr 2010 13:18:46 +0000 (13:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17739 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/rolemanagement/admin/roleManagement/class_roleGeneric.inc

index 2947fddd47414adc87b012918db201e22c0ab38b..5eeaa315078d7153c49845f5be106c8530c1eb78 100644 (file)
@@ -94,8 +94,8 @@ class roleGeneric extends plugin {
     $this->memberList->setEditable(false);
     $this->memberList->setWidth("100%");
     $this->memberList->setHeight("300px");
-    $this->memberList->setHeader(array("~",_("Name")));
-    $this->memberList->setColspecs(array('20px','*','20px'));
+    $this->memberList->setHeader(array("~",_("Name"),_("Uid")));
+    $this->memberList->setColspecs(array('20px','*','*','20px'));
     $this->memberList->setDefaultSortColumn(1);
   }
 
@@ -217,14 +217,16 @@ class roleGeneric extends plugin {
         $icon = image('plugins/users/images/select_user.png');
         $entry = $this->roleOccCache[$dn];
         $name = $entry['cn']['0'];
+        $uid = $entry['uid']['0'];
         if(isset($entry['description'][0])){
           $name .= " [".$entry['description'][0]."]";
         }
       }else{
         $name = _("Unknown")."&nbsp;".$dn;
+        $uid = "&nbsp;";
         $icon = image('images/false.png');
       }
-      $lData[$key] = array('data' => array($icon,$name));
+      $lData[$key] = array('data' => array($icon, $name, $uid));
     }
 
     $this->memberList->setListData($data,$lData);