From 9f67c77b95f9e8fbb927a663890baae1fa827897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 19 Jun 2026 10:59:09 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20normalize=20COLUMNS=20to=20lowercase=20?= =?UTF-8?q?=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20toLowerCase()=20(v1.0.63)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.cfm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/index.cfm b/index.cfm index 8a6e088..c7b1831 100644 --- a/index.cfm +++ b/index.cfm @@ -61,7 +61,7 @@
Nubes - Сверка договоров — LLM v1.0.62 — Lucee + Сверка договоров — LLM v1.0.63 — Lucee
@@ -332,13 +332,12 @@ async function refreshSupps() { if (data.OK && data.ROWS) { data.ROWS.forEach(function(r) { var supp = {}; - data.COLUMNS.forEach(function(c, ci) { supp[c] = r[ci]; }); + data.COLUMNS.forEach(function(c, ci) { supp[c.toLowerCase()] = r[ci]; }); console.log('refreshSupps: supp=', supp); for (var i = 0; i < fileQueue.length; i++) { - console.log(' cmp: doc_id=' + fileQueue[i].doc_id + ' vs DOCUMENT_ID=' + supp.DOCUMENT_ID + ' match=' + (fileQueue[i].doc_id === supp.DOCUMENT_ID)); - if (fileQueue[i].doc_id === supp.DOCUMENT_ID) { - fileQueue[i].supp_id = supp.ID; - fileQueue[i].supp_type = supp.TYPE; + if (fileQueue[i].doc_id === supp.document_id) { + fileQueue[i].supp_id = supp.id; + fileQueue[i].supp_type = supp.type; } } });