Merge branch 'ent-6490-Errores-en-edicion-de-acciones-de-alertas' into 'develop'
Ent 6490 errores en edicion de acciones de alertas See merge request artica/pandorafms!3657
This commit is contained in:
commit
b9a2998c49
|
@ -284,9 +284,9 @@ if ($update_action) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$values['module_action_threshold'] = (int) get_parameter('module_action_threshold_ajax');
|
$values['module_action_threshold'] = (int) get_parameter('module_action_threshold_ajax');
|
||||||
$values['id_alert_action'] = $id_module_action;
|
$values['id_alert_action'] = $id_action;
|
||||||
|
|
||||||
$result = alerts_update_alert_agent_module_action($id_action, $values);
|
$result = alerts_update_alert_agent_module_action($id_module_action, $values);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
db_pandora_audit('Alert management', 'Update action '.$id_action.' in alert '.$id_alert_module);
|
db_pandora_audit('Alert management', 'Update action '.$id_action.' in alert '.$id_alert_module);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -411,7 +411,11 @@ if ($show_update_action_menu) {
|
||||||
|
|
||||||
$id_action = (int) get_parameter('id_action');
|
$id_action = (int) get_parameter('id_action');
|
||||||
|
|
||||||
$actions = alerts_get_alert_agent_module_actions($id_alert);
|
$own_groups = users_get_groups($config['id_user'], 'LW', true);
|
||||||
|
$filter_groups = '';
|
||||||
|
$filter_groups = implode(',', array_keys($own_groups));
|
||||||
|
$actions = alerts_get_alert_actions_filter(true, 'id_group IN ('.$filter_groups.')');
|
||||||
|
|
||||||
$action_option = db_get_row(
|
$action_option = db_get_row(
|
||||||
'talert_template_module_actions',
|
'talert_template_module_actions',
|
||||||
'id',
|
'id',
|
||||||
|
@ -427,7 +431,7 @@ if ($show_update_action_menu) {
|
||||||
);
|
);
|
||||||
$data .= html_print_input_hidden(
|
$data .= html_print_input_hidden(
|
||||||
'id_module_action_ajax',
|
'id_module_action_ajax',
|
||||||
$id_module_action,
|
$id_action,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
if (! $id_agente) {
|
if (! $id_agente) {
|
||||||
|
@ -475,9 +479,9 @@ if ($show_update_action_menu) {
|
||||||
$data .= html_print_select(
|
$data .= html_print_select(
|
||||||
$actions,
|
$actions,
|
||||||
'action_select_ajax',
|
'action_select_ajax',
|
||||||
$id_action,
|
$action_option['id_alert_action'],
|
||||||
'',
|
'',
|
||||||
__('None'),
|
false,
|
||||||
0,
|
0,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
|
|
Loading…
Reference in New Issue