Code

Modified edit
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jan 2008 14:03:26 +0000 (14:03 +0000)
committerhickert <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

gosa-core/plugins/addons/gotomasses/class_goto_task.inc
gosa-core/plugins/addons/gotomasses/class_gotomasses.inc
gosa-core/plugins/addons/gotomasses/goto_task.tpl

index 91ddf6f3fb66ec2bb8b3ec4ecabdd178321fea8e..74663a13d442eb8fec582d3944ab39888ac16ed9 100644 (file)
@@ -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];
       }
index 3ca4a496168c463dcee0f2a87a1caae21202a757..5bed0057ae68d005ca0634b06b3552a7df51d6bc 100644 (file)
@@ -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();
index bc0cf044a7890f7410b03cb5b926b1cc9e383857..317e185c887a5de45092fe930292e1d2c7c66902 100644 (file)
@@ -20,7 +20,7 @@
                                                {t}Status{/t}
                                        </td>
                                        <td>    
-                                               {$STATUS}
+                                               <input type="text" name="status" value="{$STATUS}">
                                        </td>   
                                </tr>
                    <tr>
@@ -28,7 +28,7 @@
                         {t}Mac{/t}
                     </td>
                     <td>
-                        {$MACADDRESS}
+                        <input type="text" name="macaddress" value="{$MACADDRESS}">
                     </td>
                 </tr>
                                <tr>