From bd8232cfc34649798017a66ab662646ef37cff21 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 17 Mar 2008 15:32:40 +0000 Subject: [PATCH] Removed old code git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9900 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_systemManagement.inc | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 6283f5c1b..44fcb9093 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -859,7 +859,6 @@ class systems extends plugin * entry and not an edited one, so we will delete it. * */ - if(session::is_set('SelectedSystemType')){ $SelectedSystemType = session::get('SelectedSystemType'); if($SelectedSystemType['ogroup'] != "none"){ @@ -885,39 +884,6 @@ class systems extends plugin } $this->systab->save(); - - /* Get macAddress to be able to an installation event - */ - if($this->systab instanceof ArpNewDeviceTabs || session::is_set('SelectedSystemType')){ - $events = DaemonEvent::get_event_types(SYSTEM_EVENT); - - /* Get mac of currently edited entry */ - $mac = ""; - if($this->systab instanceof ArpNewDeviceTabs){ - $mac = $this->systab->by_object['ArpNewDevice']->netConfigDNS->macAddress; - }else{ - foreach(array("workgeneric","termgeneric","servgeneric") as $type){ - if(isset($this->systab->by_object[$type]->netConfigDNS->macAddress)){ - $mac = $this->systab->by_object[$type]->netConfigDNS->macAddress; - break; - } - } - } - - /* Add installation event - */ - 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(SCHEDULED_EVENT); - $o_queue = new gosaSupportDaemon(); - $o_queue->append($tmp); - if($o_queue->is_error()){ - msg_dialog::display(_("Service infrastructure"),msgPool::siError($o_queue->get_error()),ERROR_DIALOG); - } - } - } if(session::is_set('SelectedSystemType')){ session::un_set('SelectedSystemType'); -- 2.30.2