From d01538dd8fc49765fe384ca1056ebb2452eb4e48 Mon Sep 17 00:00:00 2001 From: electrocret Date: Thu, 26 Jan 2023 09:18:55 -0600 Subject: [PATCH] Show display name in Oxidized config search (#14800) --- includes/html/functions.inc.php | 2 ++ includes/html/pages/oxidized.inc.php | 1 + 2 files changed, 3 insertions(+) diff --git a/includes/html/functions.inc.php b/includes/html/functions.inc.php index 88e02cf988..b043c50eca 100644 --- a/includes/html/functions.inc.php +++ b/includes/html/functions.inc.php @@ -10,6 +10,7 @@ * @copyright (C) 2013 LibreNMS Group */ +use App\Facades\DeviceCache; use LibreNMS\Config; use LibreNMS\Enum\ImageFormat; use LibreNMS\Util\Number; @@ -923,6 +924,7 @@ function search_oxidized_config($search_in_conf_textbox) foreach ($nodes as &$n) { $dev = device_by_name($n['node']); $n['dev_id'] = $dev ? $dev['device_id'] : false; + $n['full_name'] = $n['dev_id'] ? DeviceCache::get($n['dev_id'])->displayName() : $n['full_name']; } /* diff --git a/includes/html/pages/oxidized.inc.php b/includes/html/pages/oxidized.inc.php index 107d427fc8..a0073b7288 100644 --- a/includes/html/pages/oxidized.inc.php +++ b/includes/html/pages/oxidized.inc.php @@ -9,6 +9,7 @@ * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ + $pagetitle[] = 'Oxidized'; ?>