From c8699a579772f8db2299d6fef134dafd1179953f Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Tue, 18 Mar 2025 11:36:24 -0400 Subject: [PATCH] bug fix for voicemail edit transcription (#7324) * bug fix for voicemail edit transcription * Update voicemail_edit.php --- app/voicemails/voicemail_edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index c8e3d49d1f..ffb45230d5 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -63,6 +63,7 @@ $voicemail_option_digits = ''; $voicemail_option_description = ''; $voicemail_mail_to = ''; + $transcribe_enabled = $settings->get('transcribe', 'enabled', false); //get http variables and set them to php variables $referer_path = $_REQUEST["referer_path"] ?? ''; @@ -833,7 +834,7 @@ echo "\n"; } - if (permission_exists('voicemail_transcription_enabled') && filter_var($_SESSION['transcribe']['enabled']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) { + if (permission_exists('voicemail_transcription_enabled') && $transcribe_enabled) { echo "\n"; echo "\n"; echo " ".$text['label-voicemail_transcription_enabled']."\n";