Revert "Rewritten device groups (including static) (#10295)" (#10340)

This reverts commit cfc51d51f5.
This commit is contained in:
Tony Murray
2019-06-16 21:52:57 -05:00
committed by GitHub
parent cfc51d51f5
commit c2b09b8f80
36 changed files with 1360 additions and 1006 deletions

View File

@@ -180,7 +180,7 @@ if ($format == "graph") {
}
if (!empty($vars['group'])) {
$where .= " AND ( ";
foreach (DB::table('device_group_device')->where('device_group_id', $vars['group'])->pluck('device_id') as $dev) {
foreach (GetDevicesFromGroup($vars['group']) as $dev) {
$where .= "device_id = ? OR ";
$sql_param[] = $dev;
}