From fcd45afe9f691c4df4d52d826c3f9ba97fac8c91 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Fri, 2 Oct 2026 00:40:53 +0900 Subject: [PATCH] =?UTF-8?q?fix(m02-df):=20=EC=9E=AC=EB=A3=8C=20=EC=A1=B0?= =?UTF-8?q?=EA=B1=B4=20=EC=B0=BE=EA=B8=B0=20=E3=80=8C=EA=B2=80=EC=83=89?= =?UTF-8?q?=EC=96=B4=E3=80=8D=20=EB=A9=B4=20=ED=8B=80=EC=9D=84=20=EC=B1=84?= =?UTF-8?q?=EC=9A=B4=20=EA=B8=80=EB=A1=9C=20=EA=B0=92=20=EB=AC=BC=EC=9D=8C?= =?UTF-8?q?(fillTemplate)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016PSXsvyDxjNmufteN5bqmt --- M02_MasterTemplete/DataFlow/M02_DF_Entry_Detail.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/M02_MasterTemplete/DataFlow/M02_DF_Entry_Detail.ts b/M02_MasterTemplete/DataFlow/M02_DF_Entry_Detail.ts index 4cd321278..a27c7a895 100644 --- a/M02_MasterTemplete/DataFlow/M02_DF_Entry_Detail.ts +++ b/M02_MasterTemplete/DataFlow/M02_DF_Entry_Detail.ts @@ -9,6 +9,7 @@ import { currentLanguageIndex } from "@ui/ui_template_locale"; import { el } from "@ui/ui_template_elements"; import { fetchLogics } from "../../M01_MasterData/M01_MasterData_UI_Logic_Api"; import type { CfAnswer, CfQuery } from "./M02_DF_Api"; +import { fillTemplate } from "./M02_DF_InputPanel_Build"; import type { CfBreak, CfValues } from "./M02_DF_Eval"; import type { CfElementRef, CfLogic, CfPort } from "./M02_DF_Model"; @@ -190,7 +191,12 @@ export function queriesOf( unit: e.unit, slot: { ...e, field: e.rule?.field, op: e.rule?.op }, }; - if (e.mode === "rule" && e.rule) q.value = pill(e.rule.from); + // 조건 찾기 — 「검색어」 면 틀에 알약 값을 채운 글 · 그 밖은 이어진 알약 값 + if (e.mode === "rule" && e.rule) + q.value = + e.rule.field === "검색어" + ? fillTemplate(e.rule.template ?? "", e.rule.slots ?? [], pill).text + : pill(e.rule.from); return { q, box: b.id, port }; }); const els = inp.elements