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

Fixes #4173 fixed an error when using virtual objectTypes like ogroup-users

parent ed71d74d
......@@ -451,8 +451,12 @@ class Attribute
if (!is_numeric($key)) {
$ot = $key;
}
$oinfos = objects::infos($ot);
return $oinfos['filter'];
try {
$oinfos = objects::infos($ot);
return $oinfos['filter'];
} catch (NonExistingObjectTypeException $e) {
return '';
}
},
array_keys($infos['plObjectType']),
array_values($infos['plObjectType'])
......
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