Code

More speed optimizations
[gosa.git] / plugins / admin / groups / tabs_group.inc
index 53031e89b3162f71e42a6081c321a39c774aa2db..a4d0279dbd444368a4ab094b919d4a982f394eea 100644 (file)
@@ -6,6 +6,12 @@ class grouptabs extends tabs
        function grouptabs($config, $data, $dn)
        {
                tabs::tabs($config, $data, $dn);
+               $baseobject= $this->by_object['group'];
+               foreach ($this->by_object as $name => $obj){
+                       if(isset($obj->parent)){
+                               $this->by_object[$name]->parent  = $this;
+                       }
+               }
        }
 
        function save_object($save_current= FALSE)
@@ -59,7 +65,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()