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

:ambulance: fix(management) Fix PHP error in class_objects

issue #5867
Showing with 5 additions and 3 deletions
+5 -3
...@@ -418,9 +418,11 @@ class objects ...@@ -418,9 +418,11 @@ class objects
if (!plugin_available($tab['CLASS'])) { if (!plugin_available($tab['CLASS'])) {
continue; continue;
} }
$attrs = pluglist::pluginInfos($tab['CLASS'])['plSearchAttrs']; $plInfos = pluglist::pluginInfos($tab['CLASS']);
foreach ($attrs as $attr) { if (isset($plInfos['plSearchAttrs'])) {
$searchAttrs[$attr] = $infos['aclCategory'].'/'.$tab['CLASS']; foreach ($plInfos['plSearchAttrs'] as $attr) {
$searchAttrs[$attr] = $infos['aclCategory'].'/'.$tab['CLASS'];
}
} }
} }
$infos['searchAttributes'] = $searchAttrs; $infos['searchAttributes'] = $searchAttrs;
......
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