From 8a5dd6f05565e68f2c9ab567dc0e32b5a394870a Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 15 Mar 2010 08:45:03 +0000 Subject: [PATCH] Fixed automitic creation of departments (create_missing_trees) -Must values of the target objectClass were filled with 'filled' automatically, even if the value was already given. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@16510 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index a1b6a8702..d75f800b4 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -709,8 +709,11 @@ class LDAP{ $na['objectClass'][]= 'locality'; } $na[$type]= $param; + + // Fill in MUST values - but do not overwrite existing ones. if (is_array($classes[$ocname]['MUST'])){ foreach($classes[$ocname]['MUST'] as $attr){ + if(isset($na[$attr]) && !empty($na[$attr])) continue; $na[$attr]= "filled"; } } -- 2.30.2