]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Correct symbols column index in history and scan tables 5791/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 11 Dec 2025 08:49:38 +0000 (11:49 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 11 Dec 2025 08:49:38 +0000 (11:49 +0300)
Fixes regression introduced in 62b136a where sorting fails with
"can't access property 'sortValue', val.options is undefined" on
the History tab, and symbol reordering doesn't work on the Scan tab.

The "file" column addition shifted the symbols column index, but
history.js and upload.js were not updated, causing symbol reordering
to target wrong columns.

Issue: #5789

interface/js/app/history.js
interface/js/app/upload.js

index 1e139d435df10d5706e97f0b9f8277be9c1c6209..966d6f3e46d21e7eb14171b39f6635424cdb3a33 100644 (file)
@@ -333,7 +333,7 @@ define(["jquery", "app/common", "app/libft", "footable"],
         });
 
         libft.set_page_size("history", $("#history_page_size").val());
-        libft.bindHistoryTableEventHandlers("history", 8);
+        libft.bindHistoryTableEventHandlers("history", 9);
 
         $("#updateHistory").off("click");
         $("#updateHistory").on("click", (e) => {
index 4c673639ca5f3dea22c614973467cab4a58e7c5f..b62ad6728a954ff489fc508c89f230261e04a6ee 100644 (file)
@@ -175,7 +175,7 @@ define(["jquery", "app/common", "app/libft"],
 
 
         libft.set_page_size("scan", $("#scan_page_size").val());
-        libft.bindHistoryTableEventHandlers("scan", 3);
+        libft.bindHistoryTableEventHandlers("scan", 5);
 
         $("#cleanScanHistory").off("click");
         $("#cleanScanHistory").on("click", (e) => {