From: psc Date: Thu, 26 Mar 2009 11:25:43 +0000 (+0000) Subject: Create a new numerated array of the items to delete, instead of merging X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=975d9cd16c5281287f3f91b75938fcbc1ba00527;p=gosa.git Create a new numerated array of the items to delete, instead of merging the arrays, because this overwrites existing entries, due to the fact that the existing arrays have conflicting keys, which leads to the situation, that array_merge discards the first added record in favor of the last one (Trac #2269) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13568 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/trunk/gosa-plugins/fai/admin/fai/class_faiManagement.inc index dc7bac243..f48108b60 100644 --- a/trunk/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/trunk/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -365,7 +365,9 @@ class faiManagement extends plugin $ids = $this->list_get_selected_items(); $to_delete = array(); foreach($ids as $id){ - $to_delete = array_merge($to_delete,$this->objects[$id]); + foreach($this->objects[$id] as $obj) { + array_push($to_delete, $obj); + } } }