Code

Updated gotomasses.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 May 2008 09:15:43 +0000 (09:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 May 2008 09:15:43 +0000 (09:15 +0000)
-Reload was broken.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10979 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/goto/class_goto_import_file.inc
gosa-plugins/goto/addons/goto/gotomasses.tpl

index 45f164fe2369f029f2c452d7ffb6af2da644fca8..0333ddcd920e85734b8ed4143125314b594c084c 100644 (file)
@@ -103,6 +103,13 @@ class goto_import_file extends plugin
           $object = new $class($this->config);
           $object->set_type(TRIGGERED_EVENT);
           $object->add_targets(array($event['MAC']));
+
+          /* Update values like fqdn a.s.o 
+           */
+          foreach($this->csv_fields as $name){
+            $object->set_value($name,$event[$name]);
+          }
+
           if(!$this->parent->o_queue->append($object)){
             msg_dialog::display(_("Service infrastructure"),msgPool::siError($this->parent->o_queue->get_error()),ERROR_DIALOG);
             $fail ++;
index 85a29495db0e294591c933fb2c8c441a77f518ae..97b3eff012ff91b797af218141eb00fb728f3e10 100644 (file)
@@ -129,7 +129,7 @@ function handleContent()
                           This means it was removed from the queue.
                         */
                        if(!found){
-                               document.location.reload();                             
+                               document.mainform.submit();                             
                        }
                }
                timer=setTimeout('loadContent()',3000);