From 71d6fe1d98f12d58adf25df0bf1971946f71c210 Mon Sep 17 00:00:00 2001 From: solocla Date: Thu, 23 Jul 2026 16:00:26 +0200 Subject: [PATCH] fixed sample arrival and date --- public/userarea/gridRenderer.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/userarea/gridRenderer.js b/public/userarea/gridRenderer.js index d35b92e..d14177d 100644 --- a/public/userarea/gridRenderer.js +++ b/public/userarea/gridRenderer.js @@ -1296,7 +1296,7 @@ } // Precalcola le coppie come col.key (sourceKey → targetKey) - const AUTO_COPY_KEY_PAIRS = AUTO_COPY_FIELD_PAIRS.map((p) => ({ + var AUTO_COPY_KEY_PAIRS = AUTO_COPY_FIELD_PAIRS.map((p) => ({ fromKey: colKeyByFieldId(p.from), toKey: colKeyByFieldId(p.to), })).filter((p) => p.fromKey && p.toKey); @@ -1571,6 +1571,10 @@ } if (col && (col.type === "detail" || col.type === "main_field")) { + const autoPair = AUTO_COPY_KEY_PAIRS.find( + (p) => p.fromKey === String(col.key), + ); + data.forEach((row) => { if ( window.isTargetGridId && @@ -1580,6 +1584,10 @@ if (!row.details) row.details = {}; row.details[col.key] = value; + if (autoPair) { + row.details[autoPair.toKey] = value; + } + if (col.type === "main_field") { row.mainFieldValue = value; }