From ce5f3451a86d0c383fa9f9e1ecbcc10d10b91b8f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 10 Apr 2008 13:27:54 +0000 Subject: [PATCH] Updated componentGeneric -Move move() operation into tab object git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10326 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_componentGeneric.inc | 4 ---- gosa-plugins/systems/admin/systems/tabs_component.inc | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc index bfec11c82..15aeaef4d 100644 --- a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc @@ -274,10 +274,6 @@ class componentGeneric extends plugin $this->handle_post_events("add",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber)); } else { - if ($this->orig_dn != $this->dn){ - $this->move($this->orig_dn, $this->dn); - } - $ldap->cd($this->dn); $this->cleanup(); $ldap->modify ($this->attrs); diff --git a/gosa-plugins/systems/admin/systems/tabs_component.inc b/gosa-plugins/systems/admin/systems/tabs_component.inc index c88383182..22638c12f 100644 --- a/gosa-plugins/systems/admin/systems/tabs_component.inc +++ b/gosa-plugins/systems/admin/systems/tabs_component.inc @@ -46,6 +46,14 @@ class componenttabs extends tabs 'dn' to all plugins */ $baseobject= $this->by_object['componentGeneric']; $this->dn= "cn=$baseobject->cn,".get_ou('componentou').$baseobject->base; + + if($this->dn != $baseobject->orig_dn && $baseobject->orig_dn != "new"){ + + /* Udpate acls */ + $baseobject->update_acls($baseobject->orig_dn,$this->dn); + $baseobject->move($baseobject->orig_dn,$this->dn); + } + $baseobject->dn= $this->dn; foreach ($this->by_object as $key => $obj){ -- 2.30.2