mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated device-groups functions to support returning all data or just group id
This commit is contained in:
@ -1024,7 +1024,7 @@ function get_device_groups() {
|
||||
// use hostname as device_id if it's all digits
|
||||
$device_id = ctype_digit($hostname) ? $hostname : getidbyname($hostname);
|
||||
if (is_numeric($device_id)) {
|
||||
$groups = GetFullGroupsFromDevice($device_id);
|
||||
$groups = GetGroupsFromDevice($device_id,1);
|
||||
}
|
||||
else {
|
||||
$groups = GetDeviceGroups();
|
||||
|
Reference in New Issue
Block a user