Code

Added a check to force a zoneName reverseName to be given
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 11:28:38 +0000 (11:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 11:28:38 +0000 (11:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3463 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNSeditZone.inc

index 19662d38bf228b6d385ebccc4f2898239e80aaac..7fcef3aa0e0f1e601189aed6e9f507385ac5fdaa 100644 (file)
@@ -355,6 +355,14 @@ class servdnseditZone extends plugin
       }
     }
 
+    if(empty($this->zoneName)){
+      $message[] =sprintf(_("Please choose a valid zone name."));
+    }
+
+    if(empty($this->ReverseZone)){
+      $message[] =sprintf(_("Please choose a valid reverse zone name."));
+    }
+
     if(!preg_match("/\.$/",$this->sOAprimary)){
       $message[] = _("Primary dns server must end with '.' to be a valid entry.");
     }