From eabe457258dd962a14247249b85a08e2d7b38896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 19 Jun 2026 10:36:55 +0400 Subject: [PATCH] =?UTF-8?q?fix=20refreshSupps:=20lowercase=20keys=20(api.c?= =?UTF-8?q?fm=20=D0=B2=D0=BE=D0=B7=D0=B2=D1=80=D0=B0=D1=89=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=20ok/rows/columns)=20(v1.0.58)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.cfm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.cfm b/index.cfm index 73dc218..585e893 100644 --- a/index.cfm +++ b/index.cfm @@ -61,7 +61,7 @@
Nubes - Сверка договоров — LLM v1.0.57 — Lucee + Сверка договоров — LLM v1.0.58 — Lucee
@@ -327,10 +327,10 @@ async function refreshSupps() { try { var resp = await fetch('/api.cfm?action=query&sql=' + encodeURIComponent("SELECT s.id, s.type, s.document_id FROM supplements s WHERE s.contract_id='" + contractId + "'")); var data = await resp.json(); - if (data.OK && data.ROWS) { - data.ROWS.forEach(function(r) { + 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] = r[ci]; }); for (var i = 0; i < fileQueue.length; i++) { if (fileQueue[i].doc_id === supp.document_id) { fileQueue[i].supp_id = supp.id;