Commit 5435e813 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5545 When using uniqueFilter, ignore objectType base checking

parent 51fcb18d
......@@ -525,7 +525,7 @@ class Attribute
break;
}
}
} else { /* whole (or sub) */
} elseif ($this->uniqueFilter === NULL) { /* whole (or sub) */
/* Check that this entry is in a concerned branch */
foreach ($branches as $branch) {
if (preg_match('/^'.preg_quote($branch, '/').'/', $dn_base)) {
......@@ -537,6 +537,8 @@ class Attribute
if (!in_array($dn_base, $config->departments)) {
continue;
}
} else {
$found = TRUE;
}
if (!$found) {
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment