Code

Activated original code
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 13:11:44 +0000 (13:11 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 13:11:44 +0000 (13:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10509 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc

index 3f42e703f1571b551013ba7def8bca81c5db1b47..7857195016e731ff6bc08fc45c6fbef2b66123cd 100644 (file)
@@ -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);
+          }
+        }
       }
     }
   }