summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a0fb61d)
raw | patch | inline | side by side (parent: a0fb61d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Feb 2008 09:17:58 +0000 (09:17 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Feb 2008 09:17:58 +0000 (09:17 +0000) |
-Use different commands when using non scheduled commands
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9156 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9156 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index afa8b44ec74959d5cb70f514c9a3fe9ac234e4ac..408c1e148ffc32d214f71fb0e82cb9b0a6b71821 100644 (file)
if($this->systab instanceof DaemonEvent){
$this->systab->save_object();
if(isset($_POST['save_event_dialog']) || $save_events_directly){
- $header = $this->systab->get_schedule_action();
+
+ /* Directly means not scheduled */
+ if($save_events_directly){
+ $header = $this->systab->get_trigger_action();
+ }else{
+ $header = $this->systab->get_schedule_action();
+ }
$targets = $this->systab->get_targets();
$data = $this->systab->save();
$data['timestamp'] = $this->systab->get_timestamp();
$o_queue = new gosaSupportDaemon();
foreach($targets as $target){
$data['macaddress'] = $target;
- $o_queue->send($header,$target,$data,TRUE);
+ $o_queue->send($header,$target,$data);
if($o_queue->is_error()){
msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."),
$o_queue->get_error()),ERROR_DIALOG);