Code

Fixed problem with moving groups that have a mail account.
[gosa.git] / plugins / admin / groups / tabs_group.inc
index 8357a0e4235685016690ac7b6306ffdd443ed25d..5753ba39a3e7c1394ae2c21bde5bf2a62540fb60 100644 (file)
@@ -3,9 +3,9 @@
 class grouptabs extends tabs
 {
 
-       function grouptabs($config, $data, $dn, $gui= true)
+       function grouptabs($config, $data, $dn)
        {
-               tabs::tabs($config, $data, $dn, $gui);
+               tabs::tabs($config, $data, $dn);
                $baseobject= $this->by_object['group'];
                foreach ($this->by_object as $name => $obj){
                        if(isset($obj->parent)){
@@ -30,6 +30,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'];