From: hickert Date: Tue, 16 Oct 2007 09:02:43 +0000 (+0000) Subject: Updated group->application saving. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e31c46b7dc77c96f8a4093069bda26a695283c2a;p=gosa.git Updated group->application saving. Save category sorting too git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7567 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index 26486dfda..a70248b0a 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -878,21 +878,25 @@ class appgroup extends plugin $this->Categories[""]=""; $this->attrs["gosaMemberApplication"]= array(); $this->attrs["gosaApplicationParameter"]= array(); + $cat_id= 0 ; foreach($this->Categories as $name => $cats){ $i =0; if(isset($this->gosaMemberApplication[$name])){ foreach($this->gosaMemberApplication[$name] as $entry){ if(!preg_match("/__SEPARATOR__/",$entry['App'])){ $this->attrs["gosaMemberApplication"][]= $entry['App']."|".$name."|".$i; + $i ++; } - $i ++; } } if(($i==0)&&(!empty($name))){ - $this->attrs["gosaMemberApplication"][]= "|".$name."|".$i; + $this->attrs["gosaMemberApplication"][]= "|".$name."|".$cat_id; } + $cat_id++; } + + /* Are there application parameters to be saved */ $this->attrs['gosaApplicationParameter']= array(); foreach($this->appoption as $name => $value){