Commit 20663a17 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '6083-improve-objectsattribute' into '1.4-dev'

Resolve "Improve ObjectsAttribute"

See merge request fusiondirectory/fd!765
parents 56c5d946 a3cc6663
......@@ -29,7 +29,7 @@
*/
class ObjectSelectAttribute extends SelectAttribute
{
protected $objectType;
protected $objectTypes;
protected $storeAttr;
protected $displayAttr;
protected $objectFilter = '';
......@@ -57,7 +57,7 @@ class ObjectSelectAttribute extends SelectAttribute
$outputs = [];
foreach ($this->objectTypes as $objectType) {
try {
$infos = objects::infos($this->objectType);
$infos = objects::infos($objectType);
$realStoreAttr = $this->storeAttr;
if (in_array($this->storeAttr, ['nameAttr','mainAttr'])) {
$realStoreAttr = $infos[$this->storeAttr];
......
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