mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-13 00:45:13 +02:00
Timethreshold_alert_edition_fix - #25
This commit is contained in:
parent
33301a89d0
commit
0fec55fd82
@ -182,10 +182,9 @@ if ($update_action) {
|
|||||||
if ($fires_max != -1)
|
if ($fires_max != -1)
|
||||||
$values['fires_max'] = $fires_max;
|
$values['fires_max'] = $fires_max;
|
||||||
$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_action;
|
$values['id_alert_action'] = $id_module_action;
|
||||||
|
|
||||||
$result = alerts_update_alert_agent_module_action ($id_module_action, $values);
|
|
||||||
|
|
||||||
|
$result = alerts_update_alert_agent_module_action ($id_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);
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ 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);
|
$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 .= '<form id="update_action-'.$alert['id'] . '" method="post">';
|
$data .= '<form id="update_action-'.$alert['id'] . '" method="post">';
|
||||||
$data .= '<table class="databox_color" style="width:100%">';
|
$data .= '<table class="databox_color" style="width:100%">';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user