From 39cc2ce9e8e18a41fdfa5112397eceb5652f91fc Mon Sep 17 00:00:00 2001 From: konradSC Date: Tue, 4 Apr 2017 23:24:13 -0400 Subject: [PATCH] Update index.lua (#2473) Bug fix in per user vm transcription. If domain had transcription enabled but the user did not, then the sql insert of the msg would fail. --- resources/install/scripts/app/voicemail/index.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/app/voicemail/index.lua b/resources/install/scripts/app/voicemail/index.lua index 98c1e98d0b..f0f1b61a34 100644 --- a/resources/install/scripts/app/voicemail/index.lua +++ b/resources/install/scripts/app/voicemail/index.lua @@ -423,7 +423,7 @@ if (storage_type == "base64") then table.insert(sql, "message_base64, "); end - if (transcribe_enabled == "true") then + if (transcribe_enabled == "true") and (voicemail_transcription_enabled == "true") then table.insert(sql, "message_transcription, "); end table.insert(sql, "message_length "); @@ -441,7 +441,7 @@ if (storage_type == "base64") then table.insert(sql, ":message_base64, "); end - if (transcribe_enabled == "true") then + if (transcribe_enabled == "true") and (voicemail_transcription_enabled == "true") then table.insert(sql, ":transcription, "); end table.insert(sql, ":message_length ");