Commit 287368ad authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixed nameLink filter

parent ac03d438
......@@ -1120,8 +1120,11 @@ class listing
function filterNameLink($row, $dn)
{
$infos = $this->getObjectTypeInfos($dn, $this->entries[$row]);
$attr = $infos['nameAttr'];
return $this->filterLink($row, $dn, "%s", $this->entries[$row][$attr]);
$value = $this->entries[$row][$infos['nameAttr']];
if (is_array($value)) {
unset($value['count']);
}
return $this->filterLink($row, $dn, "%s", $value);
}
/*!
......
Supports Markdown
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