mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@ -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(
|
||||
|
Reference in New Issue
Block a user