Code

Fixed group base detection.
[gosa.git] / plugins / admin / groups / tabs_group.inc
index 7ae739b5c934c2e6b0248ad35324a438533c730a..6fa256f5daa85b560bd60c3a63c82ba3c141ef2f 100644 (file)
@@ -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'];