From ac7927e444ec1f40de4d4f9bcc7750412b449555 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Thu, 11 Dec 2025 11:49:38 +0300 Subject: [PATCH] [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 --- interface/js/app/history.js | 2 +- interface/js/app/upload.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) => { -- 2.47.3