From: hickert Date: Wed, 27 Feb 2008 13:10:21 +0000 (+0000) Subject: Updated reinstall event. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b99cc5d5cb4b9d5b4b41b829f7a6f50a1dc6f014;p=gosa.git Updated reinstall event. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9173 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/gotomasses/events/DaemonEvent_reinstall.tpl b/gosa-plugins/goto/addons/gotomasses/events/DaemonEvent_reinstall.tpl index 448c1f39a..40a62eb70 100644 --- a/gosa-plugins/goto/addons/gotomasses/events/DaemonEvent_reinstall.tpl +++ b/gosa-plugins/goto/addons/gotomasses/events/DaemonEvent_reinstall.tpl @@ -37,11 +37,11 @@ {t}Progress{/t} - + {$progress} {t}Status{/t} - + {$status} {t}Result{/t} diff --git a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_reinstall.inc b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_reinstall.inc index f2d029d1a..bc36a452c 100644 --- a/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_reinstall.inc +++ b/gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_reinstall.inc @@ -40,8 +40,8 @@ class DaemonEvent_reinstall extends DaemonEvent } $smarty = get_smarty(); - $smarty->assign("status" , $this->status); - $smarty->assign("progress" , $this->progress); + $smarty->assign("status" , $this->status); + $smarty->assign("progress" , $this->progress); $smarty->assign("data" , $this->data); $smarty->assign("target_list" , $this->get_target_list()); $smarty->assign("is_new" , $this->is_new); @@ -51,22 +51,9 @@ class DaemonEvent_reinstall extends DaemonEvent return($display); } - public function save_object() - { - $ret = DaemonEvent::save_object(); - foreach(array("progress","status") as $attr){ - if(isset($_POST[$attr])){ - $this->$attr = get_post($attr); - } - } - } - public function save() { $ret = DaemonEvent::save(); - foreach(array("progress","status") as $attr){ - $ret[$attr] = $this->$attr; - } return($ret); } }