From ddf47180c9221d028379f6db0804af87ac2e627c Mon Sep 17 00:00:00 2001 From: laf Date: Fri, 7 Oct 2016 10:28:12 +0000 Subject: [PATCH] fix: Fixed trying to map devices to alert rules --- html/ajax_search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/ajax_search.php b/html/ajax_search.php index 77296e4a98..526ef157a5 100644 --- a/html/ajax_search.php +++ b/html/ajax_search.php @@ -59,7 +59,7 @@ if (isset($_REQUEST['search'])) { foreach ($results as $result) { $name = $result['hostname']; - if ($result['sysName'] != $name && !empty($result['sysName'])) { + if ($_REQUEST['map'] != 1 && $result['sysName'] != $name && !empty($result['sysName'])) { $name .= ' ('.$result['sysName'].') '; } if ($result['disabled'] == 1) {