mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
#11469 Fixed add selected modules
This commit is contained in:
parent
eb2d974670
commit
6e8f0d1e93
@ -67,6 +67,7 @@ if (is_ajax()) {
|
|||||||
$agents_inserted = get_parameter('agents_inserted', []);
|
$agents_inserted = get_parameter('agents_inserted', []);
|
||||||
$id_group = (int) get_parameter('id_group');
|
$id_group = (int) get_parameter('id_group');
|
||||||
$pendingdelete = (bool) get_parameter('pendingdelete');
|
$pendingdelete = (bool) get_parameter('pendingdelete');
|
||||||
|
$get_node_agent = (bool) get_parameter('get_node_agent', false);
|
||||||
|
|
||||||
$refresh_contact = get_parameter('refresh_contact', 0);
|
$refresh_contact = get_parameter('refresh_contact', 0);
|
||||||
|
|
||||||
@ -1297,6 +1298,18 @@ if (is_ajax()) {
|
|||||||
return;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user