Code

Fixed group base detection.
[gosa.git] / plugins / admin / groups / tabs_group.inc
index 397557ed5d35b546eb765742cd2db493d5f173b3..6fa256f5daa85b560bd60c3a63c82ba3c141ef2f 100644 (file)
@@ -3,9 +3,9 @@
 class grouptabs extends tabs
 {
 
-       function grouptabs($config, $data, $dn)
+       function grouptabs($config, $data, $dn,$acl_category)
        {
-               tabs::tabs($config, $data, $dn);
+               tabs::tabs($config, $data, $dn,$acl_category);
                $baseobject= $this->by_object['group'];
                foreach ($this->by_object as $name => $obj){
                        if(isset($obj->parent)){
@@ -33,6 +33,16 @@ class grouptabs extends tabs
                }
        }
 
+       function delete()
+       {
+               /* Put baseobjects 'cn' to mailobjects 'uid' */
+               $baseobject= $this->by_object['group'];
+               if (isset($this->by_object['mailgroup'])){
+                       $this->by_object['mailgroup']->uid= $baseobject->cn;
+               }
+               tabs::delete();
+       }
+
        function save()
        {
                $baseobject= $this->by_object['group'];