From: hickert Date: Tue, 15 Jan 2008 07:22:32 +0000 (+0000) Subject: Closes #317 Application 'apply' will no longer add a category. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=10f7c265c5225b57cb6812823d932e8ed73c6817;p=gosa.git Closes #317 Application 'apply' will no longer add a category. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8337 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/groups/class_groupApplication.inc b/gosa-core/plugins/admin/groups/class_groupApplication.inc index ea33e112f..e10e4a69d 100644 --- a/gosa-core/plugins/admin/groups/class_groupApplication.inc +++ b/gosa-core/plugins/admin/groups/class_groupApplication.inc @@ -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){