From 96740bfc9cc768bbd4523aedb974dd4dc0e281a6 Mon Sep 17 00:00:00 2001 From: Tom Bishop Date: Tue, 6 Aug 2024 14:18:01 -0400 Subject: [PATCH] CLDR-17799 Forum, fix bug in last PR (#3937) --- tools/cldr-apps/js/src/esm/cldrForum.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cldr-apps/js/src/esm/cldrForum.mjs b/tools/cldr-apps/js/src/esm/cldrForum.mjs index 511c9344061..04e544726ce 100644 --- a/tools/cldr-apps/js/src/esm/cldrForum.mjs +++ b/tools/cldr-apps/js/src/esm/cldrForum.mjs @@ -247,7 +247,7 @@ function openPostOrReply(pi) { const subject = makePostSubject(isReply, rootPost, pi.subject); const root = isReply ? rootPost.id : -1; const open = isReply ? rootPost.open : true; - const typeLabel = makePostTypeLabel(postType, isReply); + const typeLabel = makePostTypeLabel(pi.postType, isReply); const html = makePostHtml( pi.postType, typeLabel, @@ -260,7 +260,7 @@ function openPostOrReply(pi) { pi.value, pi.willFlag ); - const text = prefillPostText(postType, value); + const text = prefillPostText(pi.postType, pi.value); openPostWindow(html, text, pi.parentPost); }