Code

Updated system.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Mar 2008 10:22:54 +0000 (10:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Mar 2008 10:22:54 +0000 (10:22 +0000)
-Only display trigger action that have a valid command, same for scheduled.

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

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

index d99b291ea3c9e473a5842c834a5bae0e9b677d8c..7e44575d2e56f7c783281469959035d32c318950 100644 (file)
@@ -220,15 +220,18 @@ class divListSystem extends MultiSelectWindow
     }
 
     $events  = DaemonEvent::get_event_types(SYSTEM_EVENT);
+
     $s.= "..|<img src='images/rocket.png' alt='' border='0' class='center'>".
       "&nbsp;"._("Trigger action")."|\n";
-    foreach($events['BY_CLASS'] as $name =>  $event){
+    foreach($events['BY_TRIGGERED_ACTION'] as $event){
+      $name = $event['CLASS_NAME'];
       $s.= "...|".$event['MenuImage']."&nbsp;".$event['s_Menu_Name']."|trigger_event_".$name."\n";
     }
 
     $s.= "..|<img src='images/clock.png' alt='' border='0' class='center'>".
       "&nbsp;"._("Schedule action")."|\n";
-    foreach($events['BY_CLASS'] as $name =>  $event){
+    foreach($events['BY_SCHEDULED_ACTION'] as $name =>  $event){
+      $name = $event['CLASS_NAME'];
       $s.= "...|".$event['MenuImage']."&nbsp;".$event['s_Menu_Name']."|schedule_event_".$name."\n";
     }