Code

Updated system Management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Oct 2008 12:17:38 +0000 (12:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Oct 2008 12:17:38 +0000 (12:17 +0000)
-Allow to send opsi reinstall events from system listing.

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

gosa-plugins/systems/admin/systems/class_systemManagement.inc

index 4f1820dda0384a8e5fd4321cae8794430d8007b3..21f1032075e89b22e177d762bcf91b760c1e9b47 100644 (file)
@@ -708,6 +708,17 @@ class systems extends plugin
       $this->dns = array();
       $ids = $this->list_get_selected_items();
 
+      /* Handle opsi actions */
+      if($s_action == "trigger_event_DaemonEvent_reinstall"){
+        foreach($ids as $key => $id){
+          if($this->terminals[$id]['type'] == "O"){
+            $obj = $this->terminals[$id];
+            $this->opsi->job_opsi_install_client($obj['cn'][0],$obj['macAddress'][0]);
+            unset($ids[$key]);
+          }
+        }
+      }
+
       if(count($ids) && class_available("DaemonEvent")){
         $mac= array();