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

Fixes #5506 Do not depend of non-present tabs

This is useful for OPSI tab which depends on samba tab for workstations but not for workstations groups as they have no samba tab
parent edabaf8f
......@@ -707,7 +707,7 @@ class simplePlugin
} else {
if (isset($plInfo['plDepends'])) {
foreach ($plInfo['plDepends'] as $plugin) {
if (!isset($this->parent->by_object[$plugin]) ||
if (isset($this->parent->by_object[$plugin]) &&
!$this->parent->by_object[$plugin]->is_account) {
$disabled = TRUE;
$dependPlInfos = pluglist::pluginInfos($plugin);
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