Code

Reset array of dns to delete, before adding new dns
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 May 2008 09:20:30 +0000 (09:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 May 2008 09:20:30 +0000 (09:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10909 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/departments/class_departmentManagement.inc
gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc
gosa-plugins/goto/admin/applications/class_applicationManagement.inc
gosa-plugins/goto/admin/devices/class_deviceManagement.inc

index 91b54e2cfbbc4ac1356bb68f071f473636ec639c..131a3b3e6778b0327fac82ad2db51221caf0f693 100644 (file)
@@ -152,6 +152,7 @@ class departmentManagement extends plugin
 
 
       if(count($ids)){
+        $this->dns = array();
         foreach($ids as $id){
           $id = base64_decode($id);
           $this->dns[$id] = $dn = $this->config->departments[$id];
index 13a211bd0056d358e7f0e1e4160da2dc31a3ce91..2add7e445c2c392a5ca463607501cdc3937540d4 100644 (file)
@@ -220,6 +220,7 @@ class ogroupManagement extends plugin
       $ids = $this->list_get_selected_items();
 
       if(count($ids)){
+        $this->dns = array();
         foreach($ids as $id){
           $this->dns[$id] = $this->ogrouplist[$id]['dn'];
         }
index d93f167fbc143c9554490f780205fe3b417aa97e..7024e7991199da05e2c41791cfbdcc465f2e8075 100644 (file)
@@ -316,10 +316,9 @@ class applicationManagement extends plugin
       $ids = $this->list_get_selected_items();
 
       if(count($ids)){
-
+        $this->dns = array();
         foreach($ids as $id){
-          $dn = $this->applications[$id]['dn'];
-          $this->dns[$id] = $dn;
+          $this->dns[$id] = $this->applications[$id]['dn'];
         }
         if ($user= get_multiple_locks($this->dns)){
           return(gen_locked_message($user,$this->dns));
index 2acbc874ca2fe6fc816d00695af0e3a23c92784c..9560b34a3de0954b42c3e8785d735640f8c3a512 100644 (file)
@@ -229,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'];
         }