From: hickert Date: Mon, 6 Nov 2006 07:54:43 +0000 (+0000) Subject: Fixed group tab creation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de46399e242691389c90ab9fc6c4f74d20b256bd;p=gosa.git Fixed group tab creation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5012 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index 0d9e395e7..0415f1d86 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -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; } diff --git a/plugins/admin/groups/tabs_group.inc b/plugins/admin/groups/tabs_group.inc index 6fa256f5d..bcf4e3f09 100644 --- a/plugins/admin/groups/tabs_group.inc +++ b/plugins/admin/groups/tabs_group.inc @@ -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(); }