fix device sysname showing in node search

This commit is contained in:
Oliver Gorwits
2022-08-17 06:09:43 -04:00
parent 4490cece5e
commit 73862d5ac8
2 changed files with 2 additions and 1 deletions

View File

@@ -180,7 +180,7 @@ sub node_sightings {
return $row
->nodes({}, {
'+columns' => [qw/ device.dns /],
'+columns' => [qw/ device.dns device.name /],
join => 'device',
})
->search_rs({}, $search_attr)

View File

@@ -136,6 +136,7 @@ get '/ajax/content/search/node' => require_login sub {
order_by => {'-desc' => 'time_last'},
'+columns' => [
'device.dns',
'device.name',
{ time_first_stamp => \"to_char(time_first, 'YYYY-MM-DD HH24:MI')" },
{ time_last_stamp => \"to_char(time_last, 'YYYY-MM-DD HH24:MI')" },
],