mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
This reverts commit 7a8d0b9e09
.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user