From: hickert Date: Mon, 13 Oct 2008 12:17:38 +0000 (+0000) Subject: Updated system Management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f5989bf240343d872ed2be7118444854e01ba86a;p=gosa.git Updated system Management -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 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 4f1820dda..21f103207 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -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();