From: hickert Date: Thu, 24 Jan 2008 14:03:26 +0000 (+0000) Subject: Modified edit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4064fd787c91075ff685849684dce7523189feb4;p=gosa.git Modified edit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8589 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/addons/gotomasses/class_goto_task.inc b/gosa-core/plugins/addons/gotomasses/class_goto_task.inc index 91ddf6f3f..74663a13d 100644 --- a/gosa-core/plugins/addons/gotomasses/class_goto_task.inc +++ b/gosa-core/plugins/addons/gotomasses/class_goto_task.inc @@ -46,12 +46,17 @@ class goto_task extends plugin $this->data['HEADERTAG'] = $tag; } } + foreach(array("status","macaddress") as $attr){ + if(isset($_POST[$attr])){ + $this->data[strtoupper($attr)] = $_POST[$attr]; + } + } } function save() { $tmp = array(); - foreach($this->attributes as $attr){ + foreach(array("STATUS","MACADDRESS","HEADERTAG") as $attr){ if(isset($this->data[$attr])){ $tmp[$attr] = $this->data[$attr]; } diff --git a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc index 3ca4a4961..5bed0057a 100644 --- a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc +++ b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc @@ -166,7 +166,7 @@ class gotomasses extends plugin }else{ if($this->o_queue->id_exists($this->current)){ - $this->o_queue->update_entry($this->current,$this->dialog->save()); + $this->o_queue->update_entries(array($this->current),$this->dialog->save()); }else{ $tmp = $this->dialog->save(); $tmp2= array(); diff --git a/gosa-core/plugins/addons/gotomasses/goto_task.tpl b/gosa-core/plugins/addons/gotomasses/goto_task.tpl index bc0cf044a..317e185c8 100644 --- a/gosa-core/plugins/addons/gotomasses/goto_task.tpl +++ b/gosa-core/plugins/addons/gotomasses/goto_task.tpl @@ -20,7 +20,7 @@ {t}Status{/t} - {$STATUS} + @@ -28,7 +28,7 @@ {t}Mac{/t} - {$MACADDRESS} +