Code

Some changes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Dec 2009 15:16:50 +0000 (15:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Dec 2009 15:16:50 +0000 (15:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14946 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/acl/class_aclManagement.inc

index cafc830bb7d9e0ebf2499390ed4c7411f4922f87..35f412745db7a5735231fa528c8e0406fda29eb6 100644 (file)
@@ -28,12 +28,12 @@ class aclManagement extends management
 
   // Tab definition 
   protected $tabClass = "aclroletab";
-  protected $tabType = "ACLROLETABS";
+  protected $tabType = NULL;
   protected $aclCategory = "acl";
   protected $aclPlugin   = "acl";
   protected $objectName   = "acl";
 
-  function __construct($config,$ui)
+  function __construct(&$config,$ui)
   {
     $this->config = $config;
     $this->ui = $ui;
@@ -62,16 +62,16 @@ class aclManagement extends management
       $this->snapHandler = new SnapshotHandler($this->config);
     }
 
-    parent::__construct($config, $ui, "acl", $headpage);
+    parent::__construct($this->config, $ui, "acl", $headpage);
   }
 
   function removeEntryConfirmed($action="",$target=array(),$all=array(),
       $altTabClass="",$altTabType="",$altAclCategory="")
   {
+    $this->config->data['TABS'][$this->tabClass] =NULL;
     $tabType = $this->tabType;
     $tabClass = $this->tabClass;
     $aclCategory = $this->aclCategory;
-    $this->config->data['TABS'][$this->tabType] = NULL;
 
     @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$target,"Entry removel confirmed!");
 
@@ -111,11 +111,11 @@ class aclManagement extends management
 
   function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
   {
+    $this->config->data['TABS'][$this->tabClass] =NULL;
     $this->skipFooter = TRUE;
     if(count($target) == 1){
   
       // Set dummy tab object...
-      $this->config->data['TABS'][$this->tabType] = NULL;
       $this->dn = array_pop($target);
       $headpage = $this->getHeadpage();
       if($headpage->getType($this->dn) == "gosaRole"){