From cd7ae20236ee7eda305abe8360b19e574a8e0bbe Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Nov 2008 09:37:24 +0000 Subject: [PATCH] Updated copy & paste -Ensure that changes made by object->check() will be kept. solves problems for php4 and copy&paste of users. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13036 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_CopyPasteHandler.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index aba5e3208..f50cef728 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -202,9 +202,9 @@ class CopyPasteHandler { function check() { $ret = array(); - foreach($this-> current->by_object as $obj){ + foreach($this-> current->by_object as $key => $obj){ if($obj->is_account){ - $ret = array_merge($ret , $obj->check()); + $ret = array_merge($ret , $this->current->by_object[$key]->check()); } } return($ret); -- 2.30.2