diff --git a/pandora_console/godmode/alerts/alert_list.php b/pandora_console/godmode/alerts/alert_list.php index 1b304e0eed..051c8a2aaf 100644 --- a/pandora_console/godmode/alerts/alert_list.php +++ b/pandora_console/godmode/alerts/alert_list.php @@ -182,10 +182,9 @@ if ($update_action) { if ($fires_max != -1) $values['fires_max'] = $fires_max; $values['module_action_threshold'] = (int) get_parameter ('module_action_threshold_ajax'); - $values['id_alert_action'] = $id_action; - - $result = alerts_update_alert_agent_module_action ($id_module_action, $values); + $values['id_alert_action'] = $id_module_action; + $result = alerts_update_alert_agent_module_action ($id_action, $values); if ($result) { db_pandora_audit("Alert management", 'Update action ' . $id_action . ' in alert ' . $id_alert_module); } diff --git a/pandora_console/include/ajax/alert_list.ajax.php b/pandora_console/include/ajax/alert_list.ajax.php index 01b04f1602..66a1dce59d 100644 --- a/pandora_console/include/ajax/alert_list.ajax.php +++ b/pandora_console/include/ajax/alert_list.ajax.php @@ -119,7 +119,7 @@ if ($show_update_action_menu) { $id_action = (int) get_parameter ('id_action'); $actions = alerts_get_alert_agent_module_actions ($id_alert); - $action_opction = db_get_row ('talert_template_module_actions', 'id', $id_module_action); + $action_opction = db_get_row ('talert_template_module_actions', 'id', $id_alert); $data .= '
'; $data .= '';