Code

Reset array of dns to delete, before adding new dns
[gosa.git] / gosa-plugins / goto / admin / devices / class_deviceManagement.inc
index 7e061571a17173078fb86e883a20d151f71aea0b..9560b34a3de0954b42c3e8785d735640f8c3a512 100644 (file)
@@ -16,6 +16,7 @@ class deviceManagement extends plugin
   var $CopyPasteHandler               = NULL;
   var $start_pasting_copied_objects;
   var $dn ="";
+  var $dns = array();
 
   function deviceManagement(&$config, $dn= NULL)
   {
@@ -228,6 +229,7 @@ class deviceManagement extends plugin
       if(count($ids)){
 
         /* collect entries */
+        $this->dns = array();
         foreach($ids as $id){
           $this->dns[$id] = $this->devices[$id]['dn'];
         }