wip reports alert actions

This commit is contained in:
Daniel Barbero Martin 2021-11-26 14:06:10 +01:00
parent cb0039d7a7
commit 960c2de6c3
4 changed files with 9 additions and 12 deletions

View File

@ -4586,8 +4586,8 @@ $(document).ready (function () {
$("#checkbox-module-check-all").prop('checked', false);
jQuery.each (data, function (id, value) {
option = $("<option></option>")
.attr ("value", value["id_agente_modulo"])
.html (value["nombre"]);
.attr ("value", id)
.html (value);
$("#module").append (option);
});
},
@ -4609,11 +4609,12 @@ $(document).ready (function () {
$("#module").html('');
// Check module all.
$("#checkbox-module-check-all").prop('checked', false);
console.log(data);
if(data){
jQuery.each (data, function (id, value) {
option = $("<option></option>")
.attr ("value", value["id_agente_modulo"])
.html (value["nombre"]);
.attr ("value", id)
.html (value);
$("#module").append (option);
});
}
@ -4639,8 +4640,8 @@ $(document).ready (function () {
if(data){
jQuery.each (data, function (id, value) {
option = $("<option></option>")
.attr ("value", value["id_agente_modulo"])
.html (value["nombre"]);
.attr ("value", id)
.html (value);
$("#module").append (option);
});
}

View File

@ -2921,8 +2921,6 @@ function alerts_get_alert_fired($filters=[], $groupsBy=[])
);
}
hd($filters['templates']);
$filter_templates = '';
if (isset($filters['templates']) === true
&& empty($filters['templates']) === false

View File

@ -3519,9 +3519,6 @@ function get_same_modules($agents, $modules)
implode(',', array_values($agents))
);
hd('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
hd($sql);
$all = db_get_all_rows_sql($sql);
if ($all === false) {

View File

@ -310,7 +310,8 @@ if (is_ajax()) {
echo json_encode($modules);
} else {
select_modules_for_agent_group($id_group, $id_agents, $selection, false);
$modules = select_modules_for_agent_group($id_group, $id_agents, $selection, false);
echo json_encode($modules);
}
}