Merge branch 'ent-11469-selector-de-modulos-comunes-en-wizard-de-servicios-no-anade-nada' into 'develop'

Ent 11469 selector de modulos comunes en wizard de servicios no anade nada

See merge request artica/pandorafms!6047
This commit is contained in:
Gorka Sanchez 2023-07-03 07:33:05 +00:00
commit 6a8a0e8b6f
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);
@ -1309,6 +1310,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;
}