Commit a38b113d authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(simpleTabs) Fix foreign key handling on services

issue #5980
parent 07a634bf
......@@ -543,8 +543,8 @@ class simpleTabs
{
if (isset($this->by_object[$tab]) && ($this->by_object[$tab]->is_account || $this->by_object[$tab]->ignore_account)) {
return $this->by_object[$tab];
} elseif (is_subclass_of($tab, 'simpleService') && isset($this->by_object['servicesManagement']->plugins[$tab]) && $this->by_object['servicesManagement']->plugins[$tab]->is_account) {
return $this->by_object['servicesManagement']->plugins[$tab];
} elseif (is_subclass_of($tab, 'simpleService') && isset($this->by_object['servicesManagement'])) {
return $this->by_object['servicesManagement']->getServiceObject($tab);
} else {
return FALSE;
}
......
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