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

Fixes #4678 Always showing users login in ogroup member list

Showing with 7 additions and 3 deletions
+7 -3
...@@ -42,10 +42,14 @@ class ObjectsAttribute extends GenericDialogAttribute ...@@ -42,10 +42,14 @@ class ObjectsAttribute extends GenericDialogAttribute
$infos = objects::infos($objectType); $infos = objects::infos($objectType);
$this->types[$i] = $code; $this->types[$i] = $code;
$this->displays[$i] = $attrs[$infos['nameAttr']][0]; $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].']'; $this->displays[$i] .= ' ['.$attrs['description'][0].']';
} elseif (isset($attrs['uid'][0])) {
$this->displays[$i] .= ' ['.$attrs['uid'][0].']';
} }
break; break;
} }
......
  • bmortier @bmortier

    mentioned in issue #1489

    By mhamant on 2017-09-02T15:27:58 (imported from GitLab)

    ·

    mentioned in issue #1489

    By mhamant on 2017-09-02T15:27:58 (imported from GitLab)

    Toggle commit list
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