Code

Updated css und div framework.
[gosa.git] / plugins / admin / groups / tabs_group.inc
index 53031e89b3162f71e42a6081c321a39c774aa2db..7800319c5584869662698c9a288de848e6340fcd 100644 (file)
@@ -5,7 +5,8 @@ class grouptabs extends tabs
 
        function grouptabs($config, $data, $dn)
        {
-               tabs::tabs($config, $data, $dn);
+               tabs::tabs($config, $data, $dn,"groups");
+               $this->addSpecialTabs();
        }
 
        function save_object($save_current= FALSE)
@@ -24,6 +25,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'];
@@ -51,6 +62,7 @@ class grouptabs extends tabs
 
                        /* Write entry on new 'dn' */
                        if ($this->dn != "new"){
+                               $baseobject->update_acls($this->dn,$new_dn);
                                $baseobject->move($this->dn, $new_dn);
                                $this->by_object['group']= $baseobject;
                        }
@@ -59,7 +71,13 @@ class grouptabs extends tabs
                        $this->dn= $new_dn;
                }
 
-               return tabs::save();
+               $ret= tabs::save();
+
+               /* Fix tagging if needed */
+               $baseobject->dn= $new_dn;
+               $baseobject->handle_object_tagging();
+
+               return $ret;
        }
 
        function saveCopyDialog()