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

Fixes #4194 Using nameAttr and not mainAttr for display

parent 4d6911b1
......@@ -41,7 +41,7 @@ class ObjectsAttribute extends GenericDialogAttribute
if (objects::isOfType($attrs, $objectType)) {
$infos = objects::infos($objectType);
$this->types[$i] = $code;
$this->displays[$i] = $attrs[$infos['mainAttr']][0];
$this->displays[$i] = $attrs[$infos['nameAttr']][0];
if (isset($attrs['description'][0])) {
$this->displays[$i] .= ' ['.$attrs['description'][0].']';
} elseif (isset($attrs['uid'][0])) {
......
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