Code

Updated group generic - copy & paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Apr 2008 08:06:20 +0000 (08:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Apr 2008 08:06:20 +0000 (08:06 +0000)
-Copy user memberships (memberUid too)

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10576 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 319edc791904b3853e9b7179b16d4acdaa4da1a2..5c00c8155ee6b4c51ff93c0e3799c870055c5058 100644 (file)
@@ -1323,6 +1323,20 @@ class group extends plugin
     }
   }
 
+
+  function PrepareForCopyPaste($source)
+  {
+    plugin::PrepareForCopyPaste($source);
+
+    $this->memberUid = array();
+    if(isset($source['memberUid'])){
+      for($i = 0 ; $i < $source['memberUid']['count']; $i ++){
+        $this->memberUid[] = $source['memberUid'][$i];
+      }
+    }
+  }
+
+
   function set_multi_edit_values($attrs)
   {
     $users = array();