Fixed lost filter in alerts list. Ticket#2919

This commit is contained in:
Arturo Gonzalez Diaz 2015-10-26 12:20:02 +01:00
parent 5e4c25f0fb
commit e2f9c362ed
1 changed files with 5 additions and 0 deletions

View File

@ -184,6 +184,7 @@ if ($delete_action) {
} }
if ($enable_alert) { if ($enable_alert) {
$searchFlag = true;
$id_alert = (int) get_parameter ('id_alert'); $id_alert = (int) get_parameter ('id_alert');
$result = alerts_agent_module_disable ($id_alert, false); $result = alerts_agent_module_disable ($id_alert, false);
@ -200,6 +201,7 @@ if ($enable_alert) {
} }
if ($disable_alert) { if ($disable_alert) {
$searchFlag = true;
$id_alert = (int) get_parameter ('id_alert'); $id_alert = (int) get_parameter ('id_alert');
$result = alerts_agent_module_disable ($id_alert, true); $result = alerts_agent_module_disable ($id_alert, true);
@ -216,6 +218,7 @@ if ($disable_alert) {
} }
if ($standbyon_alert) { if ($standbyon_alert) {
$searchFlag = true;
$id_alert = (int) get_parameter ('id_alert'); $id_alert = (int) get_parameter ('id_alert');
$result = alerts_agent_module_standby ($id_alert, true); $result = alerts_agent_module_standby ($id_alert, true);
@ -232,6 +235,7 @@ if ($standbyon_alert) {
} }
if ($standbyoff_alert) { if ($standbyoff_alert) {
$searchFlag = true;
$id_alert = (int) get_parameter ('id_alert'); $id_alert = (int) get_parameter ('id_alert');
$result = alerts_agent_module_standby ($id_alert, false); $result = alerts_agent_module_standby ($id_alert, false);
@ -268,6 +272,7 @@ if ($id_agente) {
return; return;
} }
else { else {
$searchFlag = true;
if (!defined('METACONSOLE')) { if (!defined('METACONSOLE')) {
// The tabs will be shown only with manage alerts permissions // The tabs will be shown only with manage alerts permissions
if(check_acl ($config['id_user'], 0, "LW")) { if(check_acl ($config['id_user'], 0, "LW")) {