Fix condition for voicemail_transcription_enabled

This commit is contained in:
FusionPBX
2025-12-05 15:00:45 -07:00
committed by GitHub
parent bb6306a7db
commit 9a1e624af0

View File

@@ -189,7 +189,7 @@ function send_email(id, uuid)
sql = sql .. "WHERE (domain_uuid = :domain_uuid or domain_uuid is null) ";
sql = sql .. "AND template_language = :template_language ";
sql = sql .. "AND template_category = 'voicemail' "
if (voicemail_transcription_enabled) then
if (voicemail_transcription_enabled == 'true') then
sql = sql .. "AND template_subcategory = 'transcription' "
else
sql = sql .. "AND template_subcategory = 'default' "
@@ -387,3 +387,4 @@ function send_email(id, uuid)
end
end