From: hickert Date: Wed, 26 Nov 2008 09:37:24 +0000 (+0000) Subject: Updated copy & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd7ae20236ee7eda305abe8360b19e574a8e0bbe;hp=b994093dad3114914923c9e0c5a97dd946ecee55;p=gosa.git 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 --- 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);