From 954cdf38c57eb3f9460c24cf85b861d90946fef8 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Aug 2011 06:12:33 +0000 Subject: [PATCH] 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 --- .../systems/admin/systems/class_systemManagement.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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"){ -- 2.30.2