From: hickert Date: Wed, 17 Aug 2011 06:12:33 +0000 (+0000) Subject: Added fix to system management to prevent error messages while editing unavailable... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=954cdf38c57eb3f9460c24cf85b861d90946fef8;p=gosa.git Added fix to system management to prevent error messages while editing unavailable system-types; git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20969 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 3f11ec83a..3c2b052f4 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -701,6 +701,12 @@ class systemManagement extends management $headpage = $this->getHeadpage(); $dn = $target[0]; $type =$headpage->getType($dn); + + if(!isset($tInfo[$type])){ + msg_dialog::display(_("Information"),sprintf(_("The object-type '%s' cannot be managed with your setup of GOsa, please install the required plugins!"), $type), ERROR_DIALOG); + return; + } + $tData = $tInfo[$type]; if($type == "FAKE_OC_ArpNewDevice"){