Code

In PrepareForCopyPaste instanciate the source object and set
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Jun 2009 16:10:49 +0000 (16:10 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 29 Jun 2009 16:10:49 +0000 (16:10 +0000)
$this->smbgroup depending on what is set in the source object.
This fixes problems with copying groups if the group is tied
to a samba group (Trac #2670)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13825 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc

index 4f9cf07670643fd7b5f8c92264931962f56be76d..3d611352aa21960e3a7b655ba85b8d6cc5f0235b 100644 (file)
@@ -1406,6 +1406,9 @@ class group extends plugin
   function PrepareForCopyPaste($source)
   {
     plugin::PrepareForCopyPaste($source);
+    
+    $source_o = new group($this->config, $source['dn']);
+    $this->smbgroup = $source_o->smbgroup;
 
     $this->memberUid = array();
     if(isset($source['memberUid'])){