From 9e529dec8c2485175970cb68502530b0a978dd87 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 2 Oct 2009 08:35:05 +0000 Subject: [PATCH] Updated copy & paste for ogroups -We are now able to copy AccessTo git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14460 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/admin/ogroups/class_ogroup.inc | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc index 991937afa..1a87f3aa3 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -1056,10 +1056,7 @@ class ogroup extends plugin function PrepareForCopyPaste($source) { - /* Update available object types */ - if(isset($source['gosaGroupObjects'][0])){ - $this->gosaGroupObjects = $source['gosaGroupObjects'][0]; - } + plugin::PrepareForCopyPaste($source); /* Reload tabs */ $this->parent->reload($this->gosaGroupObjects ); @@ -1071,16 +1068,10 @@ class ogroup extends plugin } } - /* Load member objects */ - if (isset($source['member'])){ - foreach ($source['member'] as $key => $value){ - if ("$key" != "count"){ - $value= @LDAP::convert($value); - $this->member["$value"]= "$value"; - } - } + $source_o = new ogroup ($this->config, $source['dn']); + foreach(array("accessTo","member","gosaGroupObjects") as $attr){ + $this->$attr = $source_o->$attr; } - } -- 2.30.2