Code

Updated terminal / Workstation
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 15:31:16 +0000 (15:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 15:31:16 +0000 (15:31 +0000)
If a ws/term is removed, all entries in the gosa-si (gosaDaemonQueue) will be removed too.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9397 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc
gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc

index d71ad919692f70c82c77c2bf569960e1929ea666..5d1f47366207fbafeee63989a5c06f3167e34046 100644 (file)
@@ -330,6 +330,13 @@ class termgeneric extends plugin
           $og->save ();
         }
       }
+
+      /* Clean queue form entries with this mac 
+       */
+      if(class_available("gosaSupportDaemon") && tests::is_mac($this->netConfigDNS->orig_macAddress)){
+        $q = new gosaSupportDaemon();
+        $q->clean_queue_from_mac($this->netConfigDNS->orig_macAddress);
+      }
     }
   }
 
index 7cad284b479e3e012c6175ffc065df79521aed57..a103b807b0789f7a8dc0da76f7ca2bcbf4388be4 100644 (file)
@@ -337,6 +337,13 @@ class workgeneric extends plugin
       }
     }
 
+    /* Clean queue form entries with this mac 
+     */
+    if(class_available("gosaSupportDaemon") && tests::is_mac($this->netConfigDNS->orig_macAddress)){
+      $q = new gosaSupportDaemon();
+      $q->clean_queue_from_mac($this->netConfigDNS->orig_macAddress);
+    }
+
     if(isset($_POST["inheritAll"])){
       $this->set_everything_to_inherited();
     }