From 975d9cd16c5281287f3f91b75938fcbc1ba00527 Mon Sep 17 00:00:00 2001 From: psc Date: Thu, 26 Mar 2009 11:25:43 +0000 Subject: [PATCH] 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 --- trunk/gosa-plugins/fai/admin/fai/class_faiManagement.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } } -- 2.30.2