Predefine the subject and body variables

This commit is contained in:
FusionPBX
2025-12-15 10:45:28 -07:00
committed by GitHub
parent 498fd29748
commit 46bc156dc4

View File

@@ -455,7 +455,11 @@
if (not default_dialect) then default_dialect = 'us'; end
if (not default_voice) then default_voice = 'callie'; end
--get the templates
--predefine the variables
subject = '';
body = '';
--get the templates
local sql = "SELECT * FROM v_email_templates ";
sql = sql .. "WHERE (domain_uuid = :domain_uuid or domain_uuid is null) ";
sql = sql .. "AND template_language = :template_language ";