Code

Move from image button to normal submit caused bug with adding entries
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 11:10:03 +0000 (11:10 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 11:10:03 +0000 (11:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3461 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNSeditZoneEntries.inc

index e6dfc96dd19dfa9d894f8782b5e0b594436c4a89..f7d983982a8cd58029d95145183506b0428c6b72 100644 (file)
@@ -69,13 +69,13 @@ class servDNSeditZoneEntries extends plugin
 
       /* Add new host entry
        */
-      if((preg_match("/^UserRecord_/",$name)) && ($once)){
+      if((preg_match("/^UserRecord_?/",$name)) && ($once)){
         $once = false;
         $entry = getDNSHostEntries($this->config,"",true);     
         $entry['exists']    = true;
         $entry['zoneName']  = $this->zoneName; 
         $entry['RECORDS'][] = array("type" => "aRecord" , "value"=>"");
-        $this->Devices['New Entry'] = $entry;
+        $this->Devices[_("New Entry")] = $entry;
       }
 
       if(count($tmp2) != 2) continue;