Commit 6233a9f9 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4678 Always showing users login in ogroup member list

parent 9f31c7f2
......@@ -42,10 +42,14 @@ class ObjectsAttribute extends GenericDialogAttribute
$infos = objects::infos($objectType);
$this->types[$i] = $code;
$this->displays[$i] = $attrs[$infos['nameAttr']][0];
if (isset($attrs['description'][0])) {
if ($objectType == 'user') {
if (isset($attrs['description'][0])) {
$this->displays[$i] .= ' ['.$attrs['uid'][0].' - '.$attrs['description'][0].']';
} else {
$this->displays[$i] .= ' ['.$attrs['uid'][0].']';
}
} elseif (isset($attrs['description'][0])) {
$this->displays[$i] .= ' ['.$attrs['description'][0].']';
} elseif (isset($attrs['uid'][0])) {
$this->displays[$i] .= ' ['.$attrs['uid'][0].']';
}
break;
}
......
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