From de46399e242691389c90ab9fc6c4f74d20b256bd Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 6 Nov 2006 07:54:43 +0000 Subject: [PATCH] Fixed group tab creation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5012 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupManagement.inc | 4 ++-- plugins/admin/groups/tabs_group.inc | 12 ++---------- 2 files changed, 4 insertions(+), 12 deletions(-) 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(); } -- 2.30.2