Merge branch 'ent-10310-14620-Widget-General-group-status-no-funciona-correctamente-en-la-Metaconsola' into 'develop'

fixed group link on General group status widget

See merge request artica/pandorafms!5711
This commit is contained in:
Rafael Ameijeiras 2023-04-13 12:45:19 +00:00
commit b78acc28ca
1 changed files with 10 additions and 3 deletions

View File

@ -302,9 +302,16 @@ class GroupsStatusWidget extends Widget
);
$data .= '</span>';
if (is_metaconsole() === true) {
$url = $config['homeurl'];
$url .= 'index.php?sec=monitoring&sec2=operation/tree&refr=0&tab=group&pure='.$config['pure'];
$url .= '&refr=60&searchGroup='.groups_get_name($this->values['groupId']);
} else {
$url = $config['homeurl'];
$url .= 'index.php?sec=estado&sec2=operation/agentes/estado_agente';
$url .= '&refr=60&group_id='.$this->values['groupId'];
}
$data .= '<h1>';
$data .= '<a href="'.$url.'">';
$data .= groups_get_name($this->values['groupId']);