From f93c4be2e00d07cad96f38ecc32608679b5033fe Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 25 Jan 2010 08:13:08 +0000 Subject: [PATCH] Updated management and tab class to allow management as a valid plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15272 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_management.inc | 6 +++++- gosa-core/include/class_tabs.inc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_management.inc b/gosa-core/include/class_management.inc index caeb8f97e..c15954d89 100644 --- a/gosa-core/include/class_management.inc +++ b/gosa-core/include/class_management.inc @@ -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)); } } diff --git a/gosa-core/include/class_tabs.inc b/gosa-core/include/class_tabs.inc index ef670569c..e1a2954bb 100644 --- a/gosa-core/include/class_tabs.inc +++ b/gosa-core/include/class_tabs.inc @@ -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{ -- 2.30.2