From 2740fe3ee9a961e29727c71dfc68fe7b6037ad67 Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 10 Feb 2026 21:36:59 +0100 Subject: [PATCH] additional_text is now dynamic. see #525 #554 --- js/mzta-placeholders.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mzta-placeholders.js b/js/mzta-placeholders.js index d8b63008..171267fb 100644 --- a/js/mzta-placeholders.js +++ b/js/mzta-placeholders.js @@ -148,7 +148,7 @@ const defaultPlaceholders = [ default_value: "", type: 0, is_default: "1", - is_dynamic: "0", + is_dynamic: "1", enabled: 1, }, { @@ -427,7 +427,7 @@ export const placeholdersUtils = { // console.log(">>>>>>>>>> replacePlaceholders match: " + JSON.stringify(match)); // console.log(">>>>>>>>>> replacePlaceholders p1: " + JSON.stringify(p1)); // p1 contains the key inside {% %} - if (skip_additional_text && (p1 === 'additional_text')) { + if (skip_additional_text && ((p1 === 'additional_text') || (p1.startsWith('additional_text:')))) { return match; } const currPlaceholder = defaultPlaceholders.find(ph => (ph.id === p1) || (ph.is_dynamic == 1 && p1.startsWith(ph.id + ':')));