From: hickert Date: Thu, 15 May 2008 09:20:30 +0000 (+0000) Subject: Reset array of dns to delete, before adding new dns X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa786551ba1615ecfba75ca25d1c28e68e5bc3a1;p=gosa.git Reset array of dns to delete, before adding new dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10909 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc index 91b54e2cf..131a3b3e6 100644 --- a/gosa-core/plugins/admin/departments/class_departmentManagement.inc +++ b/gosa-core/plugins/admin/departments/class_departmentManagement.inc @@ -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]; diff --git a/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc b/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc index 13a211bd0..2add7e445 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc @@ -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']; } diff --git a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc index d93f167fb..7024e7991 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc @@ -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)); diff --git a/gosa-plugins/goto/admin/devices/class_deviceManagement.inc b/gosa-plugins/goto/admin/devices/class_deviceManagement.inc index 2acbc874c..9560b34a3 100644 --- a/gosa-plugins/goto/admin/devices/class_deviceManagement.inc +++ b/gosa-plugins/goto/admin/devices/class_deviceManagement.inc @@ -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']; }