From 1da98b825d9305db6995b872c2a8e1806e947887 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Jan 2007 08:43:48 +0000 Subject: [PATCH] Fixed dns zone creation , if server is new git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5579 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNS.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index c74c27fd3..793acb21d 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -280,7 +280,12 @@ class servdns extends goService /* Get differences */ - $tmp = getDNSZoneEntriesDiff($this->config,$this->Zones,$this->orig_dn); + $old_dn = $this->orig_dn; + if($old_dn == "new"){ + $old_dn = $this->dn; + } + + $tmp = getDNSZoneEntriesDiff($this->config,$this->Zones,$old_dn); /* Updated zone entries if reverser or forward name has changed * Must be done before moving entries, else the given dn is invalid -- 2.30.2