Code

Fixed category removement
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Oct 2007 09:44:54 +0000 (09:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Oct 2007 09:44:54 +0000 (09:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7533 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupApplication.inc

index 1ebb49de5000972d82a6a3e01ba2ea560c7a6d6a..ff7640e908b4aa0612fd04fbc00cc5c6c75bf33b 100644 (file)
@@ -524,14 +524,14 @@ class appgroup extends plugin
             }
             unset($this->gosaMemberApplication[$cat]);
             unset($this->Categories[$cat]);
-            foreach($this->Categories as $key => $name){
-              if(preg_match("/^".$cat."\/.*/",$key)){
-                foreach($this->gosaMemberApplication[$key] as $app){
-                  $free_apps[] = $app['App'];
-                }
-                unset($this->gosaMemberApplication[$key]);
-                unset($this->Categories[$key]);
+          }
+          foreach($this->Categories as $key => $name){
+            if(preg_match("/^".normalizePreg($cat)."\/.*/",$key)){
+              foreach($this->gosaMemberApplication[$key] as $app){
+                $free_apps[] = $app['App'];
               }
+              unset($this->gosaMemberApplication[$key]);
+              unset($this->Categories[$key]);
             }
           }
           foreach($free_apps as $app){
@@ -745,8 +745,9 @@ class appgroup extends plugin
       $tmp = split("/",$this->curCatDir);
       $bbk = "";
       for($i = 0 ; $i < ($cnt -1 ) ; $i++){
-        $bbk .= $tmp[$i];
+        $bbk .= $tmp[$i]."/";
       }
+      $bbk = preg_replace("/\/$/","",$bbk);
       $div2 ->AddEntry(array(array("string"=>sprintf($linkopen,base64_encode($bbk),".. ["._("Back")."]")),array("string"=>"&nbsp;","attach"=>"style='border-right:0px;'")));
     }