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:
Tony Murray
2016-09-27 11:50:52 -05:00
committed by Neil Lathwood
parent 4f90d389c6
commit 02b84cf3f7
4 changed files with 77 additions and 24 deletions

View File

@@ -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']);