Merge branch 'ent-10747-version-open-error-500-en-vista-principal-de-un-agente' into 'develop', JJOS.

Ent 10747 version open error 500 en vista principal de un agente

See merge request artica/pandorafms!5616
This commit is contained in:
Jimmy Olano 2023-03-24 10:14:01 +00:00
commit eb833f2ad8

View File

@ -1481,14 +1481,15 @@ if ($policyTab === ENTERPRISE_NOT_HOOK) {
// Omnishell. // Omnishell.
if (function_exists('count_tasks_agent')) {
$tasks = count_tasks_agent($id_agente); $tasks = count_tasks_agent($id_agente);
if ($tasks === true) { if ($tasks === true) {
$omnishellTab = enterprise_hook('omnishell_tab'); $omnishellTab = enterprise_hook('omnishell_tab');
if ($omnishellTab == -1) { if ($omnishellTab == -1) {
$omnishellTab = ''; $omnishellTab = '';
} }
} }
}
// WUX Console. // WUX Console.
$modules_wux = enterprise_hook('get_wux_modules', [$id_agente]); $modules_wux = enterprise_hook('get_wux_modules', [$id_agente]);