Code

Updated reinstall event.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Feb 2008 13:10:21 +0000 (13:10 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Feb 2008 13:10:21 +0000 (13:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9173 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/gotomasses/events/DaemonEvent_reinstall.tpl
gosa-plugins/goto/addons/gotomasses/events/class_DaemonEvent_reinstall.inc

index 448c1f39ab3d764f77f30e5f8193118d07e6a1a9..40a62eb70be2c5302eb89fadba1043a17a47bd61 100644 (file)
                                </tr>
                                <tr>
                                        <td>{t}Progress{/t}</td>
-                                       <td><input type="text" name="progress" value="{$progress}"></td>
+                                       <td>{$progress}</td>
                                </tr>
                                <tr>
                                        <td>{t}Status{/t}</td>
-                                       <td><input type="text" name="status" value="{$status}"></td>
+                                       <td>{$status}</td>
                                </tr>
                                <tr>
                                        <td>{t}Result{/t}</td>
index f2d029d1a9a239c16aff954d06cc412f833148dd..bc36a452cd13e0c2c96284f64048c9a2e1b0471d 100644 (file)
@@ -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);
   } 
 }