Revert "Add alert rule option to invert devices and groups "map to" list (#10954)" (#11036)

This reverts commit 7a8d0b9e09.
This commit is contained in:
Kevin Krumm
2020-01-16 01:42:53 -06:00
committed by PipoCanaja
parent 7a8d0b9e09
commit 10b42137e9
6 changed files with 12 additions and 71 deletions

View File

@@ -58,7 +58,6 @@ $invert = mres(isset($_POST['invert']) ? $_POST['invert'] : null);
$name = mres($_POST['name']);
$proc = mres($_POST['proc']);
$recovery = ($vars['recovery']);
$invert_map = mres(isset($_POST['invert_map']) ? $_POST['invert_map'] : null);
$severity = mres($_POST['severity']);
if (!is_numeric($count)) {
@@ -82,12 +81,6 @@ if ($invert == 'on') {
$recovery = empty($recovery) ? $recovery = false : true;
if ($invert_map == 'on') {
$invert_map = true;
} else {
$invert_map = false;
}
$extra = array(
'mute' => $mute,
'count' => $count,
@@ -108,8 +101,7 @@ if (is_numeric($rule_id) && $rule_id > 0) {
'name' => $name,
'proc' => $proc,
'query' => $query,
'builder' => $builder_json,
'invert_map' => $invert_map
'builder' => $builder_json
),
'alert_rules',
'id=?',
@@ -136,8 +128,7 @@ if (is_numeric($rule_id) && $rule_id > 0) {
'name' => $name,
'proc' => $proc,
'query' => $query,
'builder' => $builder_json,
'invert_map' => $invert_map
'builder' => $builder_json
), 'alert_rules');
if ($rule_id) {