From d35b3fd00256afcc1d34ffbc7712a2e936c758a5 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 24 Mar 2018 15:16:33 -0600 Subject: [PATCH] Update send_email.lua --- .../scripts/app/voicemail/resources/functions/send_email.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/app/voicemail/resources/functions/send_email.lua b/resources/install/scripts/app/voicemail/resources/functions/send_email.lua index a5ad0cbc79..7bac94a943 100644 --- a/resources/install/scripts/app/voicemail/resources/functions/send_email.lua +++ b/resources/install/scripts/app/voicemail/resources/functions/send_email.lua @@ -123,7 +123,7 @@ 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 "; - sql = sql .. "AND template_category = 'email' " + sql = sql .. "AND template_category = 'voicemail' " if (transcription == nil) then sql = sql .. "AND template_subcategory = 'default' " else