From 13612085f5caa89ecd648cb0f4b810e7f09e2e10 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 May 2008 09:15:43 +0000 Subject: [PATCH] Updated gotomasses. -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 | 7 +++++++ gosa-plugins/goto/addons/goto/gotomasses.tpl | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/addons/goto/class_goto_import_file.inc b/gosa-plugins/goto/addons/goto/class_goto_import_file.inc index 45f164fe2..0333ddcd9 100644 --- a/gosa-plugins/goto/addons/goto/class_goto_import_file.inc +++ b/gosa-plugins/goto/addons/goto/class_goto_import_file.inc @@ -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 ++; diff --git a/gosa-plugins/goto/addons/goto/gotomasses.tpl b/gosa-plugins/goto/addons/goto/gotomasses.tpl index 85a29495d..97b3eff01 100644 --- a/gosa-plugins/goto/addons/goto/gotomasses.tpl +++ b/gosa-plugins/goto/addons/goto/gotomasses.tpl @@ -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); -- 2.30.2