mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Support device group definitions from v2 (#4591)
* Support device group definitions from v2 Disable editing v2 groups. V2 Device groups are defined as follows: pattern = WHERE query with ? placeholders for values params = json encoded array of values * Can't array_unshift something that isn't an array...
This commit is contained in:
committed by
Neil Lathwood
parent
4f90d389c6
commit
02b84cf3f7
@@ -17,8 +17,7 @@ if (is_admin() === false) {
|
||||
}
|
||||
|
||||
$rule = implode(' ', $_POST['rules']);
|
||||
$rule = rtrim($rule, '&&');
|
||||
$rule = rtrim($rule, '||');
|
||||
$rule = rtrim($rule, '&|');
|
||||
$alert_id = $_POST['alert_id'];
|
||||
$count = mres($_POST['count']);
|
||||
$delay = mres($_POST['delay']);
|
||||
|
Reference in New Issue
Block a user