From: hickert Date: Mon, 21 Nov 2005 12:56:00 +0000 (+0000) Subject: some fixes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f03d1b6d42d91754f40acc07c040e53fef224b14;p=gosa.git some fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1996 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index cd62e289e..5b42adcde 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -56,6 +56,8 @@ class appgroup extends plugin $prios = array(); + $cats = array(); + foreach($this->gosaMemberApplication as $memberApp){ if(preg_match("/\|/i",$memberApp)){ $tmp = split("\|",$memberApp); @@ -76,11 +78,18 @@ class appgroup extends plugin foreach($cats as $cat ){ $max = max($prios[$cat]); $min = 1;//min($prios[$cat]); + $last = false; for($i = $min ; $i < $max ; $i++){ if(!isset($prios[$cat][$i])){ - $this->gosaMemberApplication["__SEPARATOR__".$i."|".$cat]['Pri'] = $i; - $this->gosaMemberApplication["__SEPARATOR__".$i."|".$cat]['Cat'] = $this->curCatDir; - $this->gosaMemberApplication["__SEPARATOR__".$i."|".$cat]['App'] = "__SEPARATOR__".$i; + if($last == false){ + $this->gosaMemberApplication["__SEPARATOR__".$i."|".$cat]['Pri'] = $i; + $this->gosaMemberApplication["__SEPARATOR__".$i."|".$cat]['Cat'] = $this->curCatDir; + $this->gosaMemberApplication["__SEPARATOR__".$i."|".$cat]['App'] = "__SEPARATOR__".$i; + + $last = true; + } + }else{ + $last = false; } } } @@ -229,7 +238,7 @@ class appgroup extends plugin $this->reload(); foreach($_POST as $name => $value){ if(preg_match("/DelApp_/",$name)){ - $app = preg_replace("/DelApp_/","",$name); + $app = $value; unset($this->used_apps[$app]); unset($this->gosaMemberApplication[$app."|".$this->curCatDir]); }