#8999 Optimised delete agents in bulk
This commit is contained in:
parent
3298f340b4
commit
2953bab0df
|
@ -140,7 +140,7 @@ function process_manage_delete($id_agents)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$id_group = (int) get_parameter('id_group');
|
$id_group = (is_metaconsole() === true) ? get_parameter('id_group', '') : (int) get_parameter('id_group');
|
||||||
$id_agents = get_parameter('id_agents');
|
$id_agents = get_parameter('id_agents');
|
||||||
$recursion = get_parameter('recursion');
|
$recursion = get_parameter('recursion');
|
||||||
$delete = (bool) get_parameter_post('delete');
|
$delete = (bool) get_parameter_post('delete');
|
||||||
|
@ -282,15 +282,15 @@ $table->data[3][0] .= '<span id="agent_loading" class="invisible">';
|
||||||
$table->data[3][0] .= html_print_image('images/spinner.png', true);
|
$table->data[3][0] .= html_print_image('images/spinner.png', true);
|
||||||
$table->data[3][0] .= '</span>';
|
$table->data[3][0] .= '</span>';
|
||||||
|
|
||||||
$agents = agents_get_group_agents(
|
$agents = [];
|
||||||
array_keys(users_get_groups($config['id_user'], 'AW', false)),
|
if (is_metaconsole() === false) {
|
||||||
['disabled' => 2],
|
$agents = agents_get_group_agents(
|
||||||
'none',
|
array_keys(users_get_groups($config['id_user'], 'AW', false)),
|
||||||
false,
|
['disabled' => 2],
|
||||||
false,
|
'none'
|
||||||
is_metaconsole(),
|
);
|
||||||
'|'
|
}
|
||||||
);
|
|
||||||
|
|
||||||
$table->data[3][1] = html_print_select(
|
$table->data[3][1] = html_print_select(
|
||||||
$agents,
|
$agents,
|
||||||
|
|
Loading…
Reference in New Issue