Merge branch 'ent-5163-error-texto-pestaña-Network-tools-agente' into 'develop'

Fixed

Closes pandora_enterprise#5163

See merge request artica/pandorafms!3713
This commit is contained in:
Daniel Rodriguez 2021-03-01 10:32:55 +00:00
commit 5661f9fbdd
1 changed files with 5 additions and 6 deletions

View File

@ -1389,6 +1389,7 @@ if (isset($ehorus_tab) && !empty($ehorus_tab)) {
$onheader['ehorus'] = $ehorus_tab; $onheader['ehorus'] = $ehorus_tab;
} }
$id_extension = get_parameter('id_extension', '');
// Tabs for extensions. // Tabs for extensions.
$tab_name_extensions = ''; $tab_name_extensions = '';
foreach ($config['extensions'] as $extension) { foreach ($config['extensions'] as $extension) {
@ -1431,13 +1432,11 @@ foreach ($config['extensions'] as $extension) {
} }
$image = $extension['extension_ope_tab']['icon']; $image = $extension['extension_ope_tab']['icon'];
$name = $extension['extension_ope_tab']['name']; $name = $extension['extension_ope_tab']['name'];
$id = $extension['extension_ope_tab']['id']; $id = $extension['extension_ope_tab']['id'];
$tab_name_extensions = $name;
$id_extension = get_parameter('id_extension', ''); if ($id_extension === $id) {
$tab_name_extensions = $name;
if ($id_extension == $id) {
$active = true; $active = true;
} else { } else {
$active = false; $active = false;