From 38f3fa1d01b7e0173c22445b8c0deaf6032ecf19 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 28 Sep 2009 09:59:54 +0000 Subject: [PATCH] Remove "optional" errors as a workaround. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14367 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 6fa78e8ee..efa40a910 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -2291,8 +2291,13 @@ function check_schema($cfg,$rfc2307bis = FALSE) foreach($value['CLASSES_REQUIRED'] as $class){ if(!isset($objectclasses[$name])){ - $checks[$name]['STATUS'] = FALSE; - $checks[$name]['MSG'] = sprintf(_("Missing required object class '%s'!"),$class); + if($value['IS_MUST_HAVE']){ + $checks[$name]['STATUS'] = FALSE; + $checks[$name]['MSG'] = sprintf(_("Missing required object class '%s'!"),$class); + } else { + $checks[$name]['STATUS'] = TRUE; + $checks[$name]['MSG'] = sprintf(_("Missing optional object class '%s'!"),$class); + } }elseif(!check_schema_version($objectclasses[$name],$value['REQUIRED_VERSION'])){ $checks[$name]['STATUS'] = FALSE; -- 2.30.2