Code

Removed old code
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Mar 2008 15:32:40 +0000 (15:32 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Mar 2008 15:32:40 +0000 (15:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9900 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 6283f5c1b9976e9a7617cf58609e542304fa1ad1..44fcb909382be295f3e601bb34f6213e7767b398 100644 (file)
@@ -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');