From 6dec2eabb8d02a1af21f7f5456a8b0ce7cdbabdf 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 08c5496c4..31c4c5b5b 100644
--- a/include/class_template.inc
+++ b/include/class_template.inc
@@ -191,6 +191,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