From: hickert Date: Tue, 4 Sep 2007 11:58:31 +0000 (+0000) Subject: Updated zone editor to handle posts correctly. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6db00826e238d77238030a12767cd490c983fed4;p=gosa.git Updated zone editor to handle posts correctly. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7208 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc index 4eae25030..08aab7154 100644 --- a/plugins/admin/systems/class_servDNSeditZoneEntries.inc +++ b/plugins/admin/systems/class_servDNSeditZoneEntries.inc @@ -61,6 +61,25 @@ class servDNSeditZoneEntries extends plugin plugin::execute(); + + /* Fill templating stuff */ + $smarty= get_smarty(); + $display= ""; + + $table = ""; + foreach($this->Devices as $key => $dev){ + $table .= $this->generateRecordConfigurationRow($key); + } + + $smarty->assign("disableDialog",$this->disableDialog); + $smarty->assign("table",$table);; + $display.= $smarty->fetch(get_template_path('servDNSeditZoneEntries.tpl', TRUE)); + return($display); + } + + + function save_object() + { /* Check posts for operations ... */ $once = true; @@ -119,28 +138,8 @@ class servDNSeditZoneEntries extends plugin $this->Devices[$Name]['RECORDS'][] = $tmp; } } - - - } - - /* Fill templating stuff */ - $smarty= get_smarty(); - $display= ""; - - $table = ""; - foreach($this->Devices as $key => $dev){ - $table .= $this->generateRecordConfigurationRow($key); } - $smarty->assign("disableDialog",$this->disableDialog); - $smarty->assign("table",$table);; - $display.= $smarty->fetch(get_template_path('servDNSeditZoneEntries.tpl', TRUE)); - return($display); - } - - - function save_object() - { /* Possible attributes posted */ foreach($_POST as $name => $value){ @@ -224,7 +223,7 @@ class servDNSeditZoneEntries extends plugin /* Checking entry name */ - if((!is_uid($DevName)) | (empty($DevName))){ + if((!is_uid($DevName)) || (empty($DevName))){ $message[] = sprintf(_("Entry name '%s' contains invalid characters."), $DevName); }