mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix location missing from API device list (#10215)
This commit is contained in:
@@ -311,7 +311,7 @@ function list_devices()
|
||||
$order = 'd.`'.$order.'` ASC';
|
||||
}
|
||||
|
||||
$select = " d.*, GROUP_CONCAT(dd.device_id) AS dependency_parent_id, GROUP_CONCAT(dd.hostname) AS dependency_parent_hostname, `lat`, `lng` ";
|
||||
$select = " d.*, GROUP_CONCAT(dd.device_id) AS dependency_parent_id, GROUP_CONCAT(dd.hostname) AS dependency_parent_hostname, `location`, `lat`, `lng` ";
|
||||
$join = " LEFT JOIN `device_relationships` AS dr ON dr.`child_device_id` = d.`device_id` LEFT JOIN `devices` AS dd ON dr.`parent_device_id` = dd.`device_id` LEFT JOIN `locations` ON `locations`.`id` = `d`.`location_id`";
|
||||
|
||||
if ($type == 'all' || empty($type)) {
|
||||
|
Reference in New Issue
Block a user