summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9f85fbd)
raw | patch | inline | side by side (parent: 9f85fbd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jan 2008 14:03:26 +0000 (14:03 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jan 2008 14:03:26 +0000 (14:03 +0000) |
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 91ddf6f3fb66ec2bb8b3ec4ecabdd178321fea8e..74663a13d442eb8fec582d3944ab39888ac16ed9 100644 (file)
$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 3ca4a496168c463dcee0f2a87a1caae21202a757..5bed0057ae68d005ca0634b06b3552a7df51d6bc 100644 (file)
}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 bc0cf044a7890f7410b03cb5b926b1cc9e383857..317e185c887a5de45092fe930292e1d2c7c66902 100644 (file)
{t}Status{/t}
</td>
<td>
- {$STATUS}
+ <input type="text" name="status" value="{$STATUS}">
</td>
</tr>
<tr>
{t}Mac{/t}
</td>
<td>
- {$MACADDRESS}
+ <input type="text" name="macaddress" value="{$MACADDRESS}">
</td>
</tr>
<tr>