From 46bc156dc4d4e6474559b5fd2429d6fb7449965e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 15 Dec 2025 10:45:28 -0700 Subject: [PATCH] Predefine the subject and body variables --- app/switch/resources/scripts/app/ring_groups/index.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/switch/resources/scripts/app/ring_groups/index.lua b/app/switch/resources/scripts/app/ring_groups/index.lua index 2c6d0c1224..f67c571063 100644 --- a/app/switch/resources/scripts/app/ring_groups/index.lua +++ b/app/switch/resources/scripts/app/ring_groups/index.lua @@ -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 ";