Code

Updated groups
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 31 Mar 2010 13:14:48 +0000 (13:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 31 Mar 2010 13:14:48 +0000 (13:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17437 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/groups/class_groupManagement.inc

index 76f6d4808c3910a9177cfa6f1f5b5994ac5e2442..0c8031749f2df9cd93161bac6cc2685f4cce67b8 100644 (file)
@@ -64,6 +64,8 @@ class groupManagement extends management
     parent::__construct($config, $ui, "groups", $headpage);
 
     $this->registerAction("edit_group","editEntry");
+    $this->registerAction("edit_group_","editEntry");
+    $this->registerAction("edit_group__","editEntry");
     $this->registerAction("edit_environment","editEntry");
     $this->registerAction("edit_appgroup","editEntry");
     $this->registerAction("edit_mailgroup","editEntry");
@@ -132,9 +134,8 @@ class groupManagement extends management
   function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
   {
     $str = management::editEntry($action,$target);
-
     if(preg_match("/^edit_/",$action)){
-      $tab = preg_replace("/^edit_/","",$action);
+      $tab = preg_replace("/^edit_([^_]*).*$/","\\1",$action);
       if(isset($this->tabObject->by_object[$tab])){
         $this->tabObject->current = $tab;
       }else{
@@ -168,7 +169,7 @@ class groupManagement extends management
         "sambaGroupMapping" => 
         array(
           "image" => "plugins/groups/images/samba.png",
-          "plugin" => "group",
+          "plugin" => "group_",
           "alt" => _("Samba"),
           "title" => _("Edit samba properties")
           ),
@@ -176,7 +177,7 @@ class groupManagement extends management
         "goFonPickupGroup" => 
           array(
               "image" => "plugins/groups/images/asterisk.png",
-              "plugin" => "group",
+              "plugin" => "group__",
               "alt" => _("Phone"),
               "title" => _("Edit phone properties")
               ),