Code

Updated DNS.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Feb 2009 13:04:37 +0000 (13:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Feb 2009 13:04:37 +0000 (13:04 +0000)
-Allow creation of DNS Zones for new (still unsaved) servers.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13378 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dns/admin/systems/services/dns/class_servDNS.inc

index c821a5333392f02908de529d4c2b5a5a29b9683f..59e15d71270328d9496007132f604e4f6e0266e6 100644 (file)
@@ -203,9 +203,12 @@ class servdns extends goService
 
     /* Add empty new zone 
      */
-    if(isset($_POST['AddZone'])){
-      $this->dialog = new servdnseditZone($this->config,$this->dn);
-    }
+       if(isset($_POST['AddZone'])){
+               $this->dialog = new servdnseditZone($this->config,$this->dn);
+               if($this->is_new){
+                       $this->dialog->acl_base = $this->acl_base;
+               }
+       }
 
     /* Check for edit zone request 
      */