]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttUser.class.php
Some more work in progress on group editor.
[timetracker.git] / WEB-INF / lib / ttUser.class.php
index 86174547eeedc0104a37e27ee029e6cbb6fca22b..8e9a8f2152bebe3c11f73cfca1c02f512a449694 100644 (file)
@@ -414,11 +414,11 @@ class ttUser {
   function getSubgroups() {
     $mdb2 = getConnection();
 
-    $sql = "select id, name from tt_groups where org_id = $this->org_id and parent_id = ".$this->getActiveGroup();;
+    $sql = "select id, name, description from tt_groups where org_id = $this->org_id and parent_id = ".$this->getActiveGroup();;
     $res = $mdb2->query($sql);
     if (!is_a($res, 'PEAR_Error')) {
       while ($val = $res->fetchRow()) {
-        $groups[] = array('id'=>$val['id'],'name'=>$val['name']);
+        $groups[] = $val; // array('id'=>$val['id'],'name'=>$val['name']);
       }
     }
     return $groups;