Code

Some ogroup fixes for copy & paste
[gosa.git] / plugins / admin / ogroups / class_ogroupManagement.inc
index d6021660e2c1c41db1597ddde45c4dab61ab4a81..09fba6b173dcf135311ce696315d78d20da52384 100644 (file)
@@ -453,6 +453,11 @@ class ogroupManagement extends plugin
         $dn       =   $this->ogrouplist[$s_entry]['dn'];
         $obj      =   new ogrouptabs($this->config, $this->config->data['TABS']['OGROUPTABS'], $dn);
         $objNew   =   new ogrouptabs($this->config, $this->config->data['TABS']['OGROUPTABS'], "new");
+
+        $types_of_tabs = $obj->by_object['ogroup']->gosaGroupObjects;
+        $objNew->by_object['ogroup']->gosaGroupObjects = $types_of_tabs;    
+        $objNew->reload($types_of_tabs);
+
         $this->CopyPasteHandler->Copy($obj,$objNew);
       }