From: Alexander Moisseev Date: Thu, 11 Dec 2025 08:49:38 +0000 (+0300) Subject: [Fix] Correct symbols column index in history and scan tables X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac7927e444ec1f40de4d4f9bcc7750412b449555;p=thirdparty%2Frspamd.git [Fix] Correct symbols column index in history and scan tables 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 --- diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 1e139d435d..966d6f3e46 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -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) => { diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index 4c673639ca..b62ad6728a 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -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) => {