From: hickert Date: Tue, 27 Apr 2010 09:36:55 +0000 (+0000) Subject: Fixed department management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=580a30ac8b6a434300bb055e1f17a4a39b78a8e4;p=gosa.git Fixed department management -Do not request values from a non object git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17876 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc index ec66d7f79..cabf4ec60 100644 --- a/gosa-core/plugins/admin/departments/class_departmentManagement.inc +++ b/gosa-core/plugins/admin/departments/class_departmentManagement.inc @@ -114,9 +114,11 @@ class departmentManagement extends management $str = management::saveChanges(); if(!empty($str)) return($str); + $plugname = (isset($this->last_tabObject->base_name))? $this->last_tabObject->base_name : ''; + $this->refreshDeps(); - $plugname = $this->last_tabObject->base_name; - if($this->last_tabObject->by_object[$plugname]->must_be_tagged()){ + if(is_object($this->last_tabObject->by_object[$plugname]) && + $this->last_tabObject->by_object[$plugname]->must_be_tagged()){ $smarty = get_smarty(); $smarty->assign("src","?plug=".$_GET['plug']."&TagDepartment&no_output_compression"); $smarty->assign("message",_("As soon as the tag operation has finished, you can scroll down to end of the page and press the 'Continue' button to continue with the department management dialog."));