From 1e1befff4815e9cda7545e2f4d8d1b4af0b47939 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 16 Apr 2008 13:11:44 +0000 Subject: [PATCH] Activated original code git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10509 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/goto/class_workstationStartup.inc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index 3f42e703f..785719501 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -964,15 +964,14 @@ class workstartup extends plugin /* Trigger event for all member objects */ -print_a ($macs); -# foreach($macs as $mac){ -# $tmp = new $evt['CLASS_NAME']($this->config); -# $tmp->set_type(TRIGGERED_EVENT); -# $tmp->add_targets(array($mac)); -# if(!$o_queue->append($tmp)){ -# msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG); -# } -# } + foreach($macs as $mac){ + $tmp = new $evt['CLASS_NAME']($this->config); + $tmp->set_type(TRIGGERED_EVENT); + $tmp->add_targets(array($mac)); + if(!$o_queue->append($tmp)){ + msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG); + } + } } } } -- 2.30.2