Store device group relationships in a pivot table.

This commit is contained in:
Tony Murray
2016-06-02 12:37:03 -05:00
parent 16b91f6a97
commit 009840bf8a
7 changed files with 173 additions and 16 deletions

View File

@ -1271,7 +1271,7 @@ function get_devices_by_group() {
}
else {
$group_id = dbFetchCell("SELECT `id` FROM `device_groups` WHERE `name`=?",array($name));
$devices = GetDevicesFromGroup($group_id);
$devices = GetDevicesFromGroup($group_id, true);
$count = count($devices);
if (empty($devices)) {
$message = 'No devices found in group ' . $name;