From: hickert Date: Tue, 4 Mar 2008 10:22:54 +0000 (+0000) Subject: Updated system. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cbcf1330d0f3da2600e0a8f7c147756cf6d7fb07;p=gosa.git Updated system. -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 --- diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc index d99b291ea..7e44575d2 100644 --- a/gosa-plugins/systems/admin/systems/class_divListSystem.inc +++ b/gosa-plugins/systems/admin/systems/class_divListSystem.inc @@ -220,15 +220,18 @@ class divListSystem extends MultiSelectWindow } $events = DaemonEvent::get_event_types(SYSTEM_EVENT); + $s.= "..|". " "._("Trigger action")."|\n"; - foreach($events['BY_CLASS'] as $name => $event){ + foreach($events['BY_TRIGGERED_ACTION'] as $event){ + $name = $event['CLASS_NAME']; $s.= "...|".$event['MenuImage']." ".$event['s_Menu_Name']."|trigger_event_".$name."\n"; } $s.= "..|". " "._("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']." ".$event['s_Menu_Name']."|schedule_event_".$name."\n"; }