summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fbdbafd)
raw | patch | inline | side by side (parent: fbdbafd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Jul 2009 07:43:51 +0000 (07:43 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Jul 2009 07:43:51 +0000 (07:43 +0000) |
- Ensure that we do not create zoneNames twice...
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13910 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13910 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc | patch | blob | history |
diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc
index b61601c6e6b3035e864cf780bd6673bfcbe48db6..67f2c0df084550212475afe57aa91bfb50eef05b 100644 (file)
{
/* Call common method to give check the hook */
$message= plugin::check();
-
+
/* Check if zoneName is already in use */
$usedZones = $this->getUsedZoneNames();
+ if($this->OldZoneName == "" && !empty($this->zoneName)){
+ $tmp = trim($this->zoneName,".").".";
+ if(isset($usedZones[$tmp])){
+ $message[] = msgPool::duplicated(_("Zone name"));
+ }
+ }
if(empty($this->zoneName)){
$message[] = msgPool::required(_("Zone name"));
default : trigger_error("Invalid network class given '".$this->NetworkClass."'");
}
foreach($zones as $name => $data){
- if($data['ReverseZone'] == $test){
+ if($data['ReverseZone'] == $test && $data['zoneName'] != $this->InitialzoneName){
$message[] = msgPool::duplicated(_("Network address"));
}
}