From: hickert Date: Thu, 22 Dec 2005 06:31:57 +0000 (+0000) Subject: Konqueror post fixes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ecc455412df3d6559f065f672a2bd9c16b36a358;p=gosa.git Konqueror post fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2366 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index 9f3d02d43..bd5616b51 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -330,27 +330,40 @@ class appgroup extends plugin $this->reload(); + $only_once = false; foreach($_POST as $name => $value){ - if(preg_match("/AddSep_/",$name)){ - $this->AddSeperator($value); + if((preg_match("/AddSep_/",$name))&&(!$only_once)){ + $only_once = true; + $n = preg_replace("/AddSep_/","",$name); + $val= preg_replace("/_.*$/","",$n); + $this->AddSeperator($val); } - - if(preg_match("/DelApp_/",$name)){ - $app = $value; + if((preg_match("/DelApp_/",$name))&&(!$only_once)){ + $only_once = true; + + + if(preg_match("/DelApp___SEPARATOR__/",$name)) { + $n= preg_replace("/DelApp___SEPARATOR__/","",$name); + $val= "__SEPARATOR__".preg_replace("/_.*$/","",$n); + }else{ + $n = preg_replace("/DelApp_/","",$name); + $val= preg_replace("/_.*$/","",$n); + } + foreach($this->gosaMemberApplication as $key => $cat){ foreach($cat as $key2 => $app){ - if($app['App'] == $value){ + if($app['App'] == $val){ unset($this->gosaMemberApplication[$key][$key2]); - if(isset($this->used_apps[$value])){ - unset($this->used_apps[$value]); + if(isset($this->used_apps[$val])){ + unset($this->used_apps[$val]); } } } } } - + if(preg_match("/DelCat_/",$name)){ $n = preg_replace("/DelCat_/","",$name); $app = base64_decode( preg_replace("/_.*$/","",$n));