From 2215c549bb43b1a38fded1c38d9c025268ab627b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Thu, 26 Jan 2017 14:10:44 +0100 Subject: [PATCH] Fixes #5357 Avoid merging objectClasses count as an objectClass --- include/class_template.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/include/class_template.inc b/include/class_template.inc index e780b2c21..7d416cbfe 100644 --- a/include/class_template.inc +++ b/include/class_template.inc @@ -194,6 +194,7 @@ class template { if ($targetdn !== NULL) { $this->tabObject = objects::open($targetdn, $this->type); + unset($this->attrs['objectClass']['count']); foreach ($this->tabObject->by_object as $class => &$plugin) { if ($plugin->is_account || $plugin->ignore_account) { $this->attrs['objectClass'] = $plugin->mergeObjectClasses($this->attrs['objectClass']); -- GitLab