mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix incorrect icon sometimes (#9887)
* Fix icon finding Also fix os suggest not loading all OS. * Fix os that would have missing icon under the new code (and one under the old code) * forgot icon
This commit is contained in:
@@ -56,6 +56,7 @@ function levsortos($base, $obj, $keys)
|
||||
|
||||
header('Content-type: application/json');
|
||||
if (isset($_GET['term'])) {
|
||||
load_all_os();
|
||||
$_GET['term'] = clean($_GET['term']);
|
||||
$sortos = levsortos($_GET['term'], $config['os'], array("text", "os"));
|
||||
$sortos = array_slice($sortos, 0, 20);
|
||||
|
Reference in New Issue
Block a user