Add alert rule error on invert map selected but no selection in device, group or location list (#11894)

* error on invert map selected but no selection

* error on invert map selected but no selection

* error on invert map selected but no selection
This commit is contained in:
louis-oui
2020-07-03 11:54:12 +02:00
committed by GitHub
parent 8a6de3ef23
commit ad6348af42

View File

@ -101,6 +101,14 @@ $extra = array(
$extra_json = json_encode($extra);
if (!is_array($vars['maps']) && $invert_map) {
die(json_encode([
'status' => 'error',
'message' => 'Invert map is on but no selection in devices, groups and locations match list<br />'
]));
}
if (is_numeric($rule_id) && $rule_id > 0) {
if (dbUpdate(
array(