Code

Fixed group tab creation
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Nov 2006 07:54:43 +0000 (07:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Nov 2006 07:54:43 +0000 (07:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5012 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupManagement.inc
plugins/admin/groups/tabs_group.inc

index 0d9e395e7a5ec76f7f6c5b7b9716f7f6d8130140..0415f1d86babeb63d21c687231b3b97e5141bd24 100644 (file)
@@ -145,7 +145,7 @@ class groupManagement extends plugin
       $this->dn= "new";
 
       /* Create new usertab object */
-      $this->grouptab= new grouptabs($this->config, $this->config->data['TABS']['GROUPTABS'], $this->dn,"groups");
+      $this->grouptab= new grouptabs($this->config, $this->config->data['TABS']['GROUPTABS'], $this->dn);
 
       /* Set up the users ACL's for this 'dn' */
       $this->grouptab->set_acl_base($this->DivListGroup->selectedBase);
@@ -208,7 +208,7 @@ class groupManagement extends plugin
       add_lock ($this->dn, $this->ui->dn);
 
       /* Register grouptab to trigger edit dialog */
-      $this->grouptab= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $this->dn,"groups");
+      $this->grouptab= new grouptabs($this->config,$this->config->data['TABS']['GROUPTABS'], $this->dn);
       $this->grouptab->set_acl_base($this->dn);
       $_SESSION['objectinfo']= $this->dn;
     }
index 6fa256f5daa85b560bd60c3a63c82ba3c141ef2f..bcf4e3f090fc44204f4184b47df2d7b32e02b5ee 100644 (file)
@@ -3,17 +3,9 @@
 class grouptabs extends tabs
 {
 
-       function grouptabs($config, $data, $dn,$acl_category)
+       function grouptabs($config, $data, $dn)
        {
-               tabs::tabs($config, $data, $dn,$acl_category);
-               $baseobject= $this->by_object['group'];
-               foreach ($this->by_object as $name => $obj){
-                       if(isset($obj->parent)){
-                               $this->by_object[$name]->parent  = $this;
-                       }
-               }
-
-               /* Add references/acls/snapshots */
+               tabs::tabs($config, $data, $dn,"groups");
                $this->addSpecialTabs();
        }