Code

Fixed problem with moving groups that have a mail account.
[gosa.git] / plugins / admin / groups / tabs_group.inc
index e454339422e9676c75696e1b83f6822e8f397a47..5753ba39a3e7c1394ae2c21bde5bf2a62540fb60 100644 (file)
@@ -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'];
@@ -68,6 +78,7 @@ class grouptabs extends tabs
                $ret= tabs::save();
 
                /* Fix tagging if needed */
+               $baseobject->dn= $new_dn;
                $baseobject->handle_object_tagging();
 
                return $ret;