#11469 Fixed add selected modules

This commit is contained in:
Daniel Maya 2023-06-06 14:55:30 +02:00
parent eb2d974670
commit 6e8f0d1e93
1 changed files with 13 additions and 0 deletions

View File

@ -67,6 +67,7 @@ if (is_ajax()) {
$agents_inserted = get_parameter('agents_inserted', []);
$id_group = (int) get_parameter('id_group');
$pendingdelete = (bool) get_parameter('pendingdelete');
$get_node_agent = (bool) get_parameter('get_node_agent', false);
$refresh_contact = get_parameter('refresh_contact', 0);
@ -1297,6 +1298,18 @@ if (is_ajax()) {
return;
}
if ($get_node_agent === true) {
$id = get_parameter('id', 0);
if (empty($id) === false) {
$result = db_get_value_sql(
'SELECT id_tmetaconsole_setup FROM tmetaconsole_agent WHERE id_agente = '.$id
);
echo json_encode($result);
return;
}
}
return;
}