From 2b1bc68d892081c88a7c7b50485ce820ce7c0902 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Tue, 7 Jul 2026 17:34:38 +0300 Subject: [PATCH] Fix: Run updateHeaderStats(data) slightly earlier (before a possible return) (log.js) Currently, updateHeaderStats(data) may fail to run due to the if (!data.rows.length && data.total > 0) condition and subsequent "return" statement. We've fixed this issue. --- web/skins/classic/views/js/log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/views/js/log.js b/web/skins/classic/views/js/log.js index 24fb418d2..1cc49d2a9 100644 --- a/web/skins/classic/views/js/log.js +++ b/web/skins/classic/views/js/log.js @@ -89,6 +89,7 @@ function ajaxRequest(params) { timeout: 600000, success: function(data) { updateHeaderRequestStatus(secsToTime((Date.now() - startTime)/1000, 1)); + updateHeaderStats(data); table.bootstrapTable('hideLoading'); if (!data.rows.length && data.total > 0) { // The requested page is out of range; reset to page 1. @@ -101,7 +102,6 @@ function ajaxRequest(params) { totalNotFiltered: data.totalNotFiltered, rows: processRows(data.rows) }); - updateHeaderStats(data); }, error: function(jqxhr) { if (jqxhr.statusText === "plannedAbort") {