Code

Closes #317 Application 'apply' will no longer add a category.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 07:22:32 +0000 (07:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jan 2008 07:22:32 +0000 (07:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8337 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index ea33e112f8e3de2c98d81ac85545ddee1e0c1c0d..e10e4a69d7d1172687e77957cffaa0759875bfec 100644 (file)
@@ -979,14 +979,14 @@ class appgroup extends plugin
 
     plugin::save();
 
-
-
     /* Copy members */
-    $this->Categories[""]=""; 
+    $tmp = array("" => "");
+    $tmp = array_merge($tmp,$this->Categories);
+
     $this->attrs["gosaMemberApplication"]= array();
     $this->attrs["gosaApplicationParameter"]= array();
     $cat_id= 0 ;
-    foreach($this->Categories as $name => $cats){
+    foreach($tmp as $name => $cats){
       $i =0;
       if(isset($this->gosaMemberApplication[$name])){
         foreach($this->gosaMemberApplication[$name] as $entry){