From 8c85eda7ac1785dcd3a4a006df61f158a703561d Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Mon, 24 Nov 2025 17:58:17 +0300 Subject: [PATCH] fix: Use attachments array instead of attachments_names in old format normalizeData --- frontend/src/components/form/generateConfirmationFormHTML.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/form/generateConfirmationFormHTML.ts b/frontend/src/components/form/generateConfirmationFormHTML.ts index a964fca..07e55f1 100644 --- a/frontend/src/components/form/generateConfirmationFormHTML.ts +++ b/frontend/src/components/form/generateConfirmationFormHTML.ts @@ -213,7 +213,7 @@ export function generateConfirmationFormHTML(data: any): string { description: claim.description || null, reason: claim.reason || caseData.category || null, }, - attachments: data.attachments_names || [], + attachments: data.attachments || data.attachments_names || [], // ✅ Используем полный массив attachments с field_label offenders: offenders.map((o: any) => Object.assign({}, baseOffender, o || {})), meta: data.meta || {}, }; @@ -668,7 +668,7 @@ export function generateConfirmationFormHTML(data: any): string { description: claim.description || null, reason: claim.reason || caseData.category || null, }, - attachments: data.attachments_names || [], + attachments: data.attachments || data.attachments_names || [], // ✅ Используем полный массив attachments с field_label offenders: offenders.map(function(o) { return { accountname: o.name || o.accountname || null,