From: hickert Date: Tue, 4 Sep 2007 12:55:36 +0000 (+0000) Subject: Udpated dns post handling for zoneeditor X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f65e16fb40c1ae48ca3de514c353fc7f49566baf;p=gosa.git Udpated dns post handling for zoneeditor git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7213 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc index c36446b9d..a8abbf8c9 100644 --- a/plugins/admin/systems/class_servDNSeditZone.inc +++ b/plugins/admin/systems/class_servDNSeditZone.inc @@ -210,6 +210,7 @@ class servdnseditZone extends plugin $smarty->assign("AllowZoneEdit" , true); if(isset($_POST['EditZoneEntries'])){ $this->dialog= new servDNSeditZoneEntries($this->config,$this->dn,$this->ZoneObject); + $this->dialog->parent = $this; } } diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc index a77f6c6d3..4bd34bccc 100644 --- a/plugins/admin/systems/class_servDNSeditZoneEntries.inc +++ b/plugins/admin/systems/class_servDNSeditZoneEntries.inc @@ -301,7 +301,6 @@ class servDNSeditZoneEntries extends plugin $todo = array(); - /* Create todolist */ foreach($this->Devices as $name => $dev){ @@ -347,6 +346,9 @@ class servDNSeditZoneEntries extends plugin foreach($tmp['del'] as $dn => $del){ $ldap->cd($dn); $ldap->rmdir_recursive($dn); + if(is_object($this->parent->parent)){ + $this->parent->parent->handle_post_events("remove",array("dn" => $dn)); + } } /* Add || Update new DNS entries @@ -357,9 +359,15 @@ class servDNSeditZoneEntries extends plugin if(count($ldap->fetch())){ $ldap->cd($dn); $ldap->modify ($attrs); + if(is_object($this->parent->parent)){ + $this->parent->parent->handle_post_events("modify",array("dn" => $dn)); + } }else{ $ldap->cd($dn); $ldap->add($attrs); + if(is_object($this->parent->parent)){ + $this->parent->parent->handle_post_events("create",array("dn" => $dn)); + } } } }