Fixed lost filter in alerts list. Ticket#2919
This commit is contained in:
parent
d54b8eb5e1
commit
5fb981377d
|
@ -185,6 +185,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);
|
||||||
|
@ -201,6 +202,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);
|
||||||
|
@ -217,6 +219,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);
|
||||||
|
@ -233,6 +236,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);
|
||||||
|
@ -269,6 +273,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")) {
|
||||||
|
|
Loading…
Reference in New Issue