Code

Updated management and tab class to allow management as a valid plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Jan 2010 08:13:08 +0000 (08:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Jan 2010 08:13:08 +0000 (08:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15272 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_management.inc
gosa-core/include/class_tabs.inc

index caeb8f97e8f2b0b30c8fdabb253688a36d27928e..c15954d89e76a638283830ddee0c35c0273df30b 100644 (file)
@@ -33,7 +33,7 @@ class management
   public $plHeadline    = "unconfigured";
 
   // The currently used object(s) (e.g. in edit, removal)
-  protected $dn = "";
+  public $dn = "";  // this is public due to some compatibility problems with class plugin..
   protected $dns = array();
 
   // The last used object(s).
@@ -910,7 +910,11 @@ class management
         msg_dialog::display(_("Error"), $message, ERROR_DIALOG);
       }
     }
+  }
 
+  function is_modal_dialog()
+  {
+    return(is_object($this->tabObject) || is_object($this->dialogObject));
   }
 }
 
index ef670569c718c287a0d01f0b195da816086f96fd..e1a2954bb3d3b6d8162382a976bd2b8553a68c7b 100644 (file)
@@ -332,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{