From b0c20666dd7cbe7500834689ef5319a2cbfc2763 Mon Sep 17 00:00:00 2001 From: Dragan Savic Date: Fri, 6 Sep 2019 19:43:13 +0200 Subject: [PATCH] Corrected div element IDs when listing alerts in tables (#10587) Use $alert['id'] instead of $rulei as HTML div elements ids. --- includes/html/table/alerts.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/html/table/alerts.inc.php b/includes/html/table/alerts.inc.php index fe4969bdf4..26f5750ecb 100644 --- a/includes/html/table/alerts.inc.php +++ b/includes/html/table/alerts.inc.php @@ -153,7 +153,7 @@ foreach (dbFetchRows($sql, $param) as $alert) { $severity .= ' -'; } - $hostname = '
' . generate_device_link($alert, format_hostname($alert, shorthost($alert['hostname']))) . '
' . $fault_detail . '
'; + $hostname = '
' . generate_device_link($alert, format_hostname($alert, shorthost($alert['hostname']))) . '
' . $fault_detail . '
'; switch ($severity) { case 'critical': @@ -194,7 +194,7 @@ foreach (dbFetchRows($sql, $param) as $alert) { $response[] = array( 'id' => $rulei++, 'rule' => '' . htmlentities($alert['name']) . '', - 'details' => '', + 'details' => '', 'hostname' => $hostname, 'location' => generate_link($alert['location'], array('page' => 'devices', 'location' => $alert['location'])), 'timestamp' => ($alert['timestamp'] ? $alert['timestamp'] : 'N/A'),