#11379 fixed filter in agent list when use action

This commit is contained in:
Daniel Cebrian 2023-05-29 10:59:12 +02:00
parent 8807912c68
commit 206daabbd7
1 changed files with 3 additions and 2 deletions

View File

@ -929,7 +929,7 @@ if ($agents !== false) {
[
'href' => ui_get_full_url(
sprintf(
'index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&%s_agent=%s&group_id=%s&recursion=%s&search=%s&offset=%s&sort_field=%s&sort=%s&disabled=%s',
'index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&%s_agent=%s&group_id=%s&recursion=%s&search=%s&offset=%s&sort_field=%s&sort=%s&disabled=%s&os=%s',
$agentDisableEnableAction,
$agent['id_agente'],
$ag_group,
@ -938,7 +938,8 @@ if ($agents !== false) {
'',
$sortField,
$sort,
$disabled
$disabled,
$os
)
),
'onClick' => ($agent['id_os'] === CLUSTER_OS_ID) ? sprintf('if (!confirm(\'%s\')) return false', $agentDisableEnableCaption) : 'return true;',