Code

Updated Icon Menu
[gosa.git] / gosa-core / include / class_tabs.inc
index f277f815bd7c0d5455838d15bfdee31ced4c82de..e1a2954bb3d3b6d8162382a976bd2b8553a68c7b 100644 (file)
@@ -37,6 +37,8 @@ class tabs
   var $acl_category; 
   var $multiple_support_active = FALSE;
 
+  var $parent = null; // A parent object if available, e.g. a management class.
+
   var $read_only = FALSE; // Used when the entry is opened as "readonly" due to locks.
   var $hide_refs = FALSE;
   var $hide_acls = FALSE;
@@ -190,7 +192,10 @@ class tabs
 
   function gen_tabs($disabled = FALSE)
   {
-    $display= "<input type=\"hidden\" name=\"arg\" value=\"\">";
+    $display ="";
+    if(!$disabled){
+      $display.= "<input type=\"hidden\" name=\"arg\" value=\"\">";
+    }
     $display.= "<table summary=\"\" cellpadding=0 cellspacing=0 border=0 style=\"width:100%;\"><tr>";
     $index= 0;
     $style= array("tab_left", "tab_active", "tab_near_active", "tab_right");
@@ -327,7 +332,7 @@ class tabs
 
       $obj->dn= $this->dn;
 
-      if(!$obj instanceof plugin){
+      if(!$obj instanceof plugin && !$obj instanceOf management){
         trigger_error("Something went wrong while saving ".$obj->dn.". Object class '".get_class($obj)."'.");
       }else{