diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index 33c04ec1c2d47e15b6ece8ed425e746fcf139b21..b1f33c1b94cc54845aaa48774812e569175d0b45 100644 (file)
*/
if(isset($_POST['save_event_dialog']) || $this->systab->get_type() == TRIGGERED_EVENT){
$o_queue = new gosaSupportDaemon();
- $this->systab->set_type(($s_action == "trigger_event_DaemonEvent_reinstall" || $s_action == "trigger_event_DaemonEvent_update")?SCHEDULED_EVENT:TRIGGERED_EVENT);
$o_queue->append($this->systab);
if($o_queue->is_error()){
msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."),
/* Add installation event
*/
- if(!empty($mac) && isset($events['BY_CLASS']['DaemonEvent_install'])){
- $evt = $events['BY_CLASS']['DaemonEvent_install'];
+ if(!empty($mac) && isset($events['BY_CLASS']['DaemonEvent_reinstall'])){
+ $evt = $events['BY_CLASS']['DaemonEvent_reinstall'];
$tmp = new $evt['CLASS_NAME']($this->config);
$tmp->add_targets(array($mac));
- $tmp->set_type(TRIGGERED_EVENT);
+ $tmp->set_type(SCHEDULED_EVENT);
$o_queue = new gosaSupportDaemon();
$o_queue->append($tmp);
if($o_queue->is_error()){
} else {
/* Ok. There seem to be errors regarding to the tab data,
show message and continue as usual. */
- show_errors($message);
+ msgDialog::displayChecks($message);
}
}