From f080a390534a7ecdb16cf8659d6c5177c5f483a2 Mon Sep 17 00:00:00 2001 From: Joseph <71848841+junction1153@users.noreply.github.com> Date: Mon, 2 May 2022 10:06:21 -0400 Subject: [PATCH] Fix voicemail transcriptions not being pushed (#6339) * Fix voicemail transcriptions not being pushed When creating a new extension, under the Voicemail tab, Transcribe is empty. This was causing users to not receive VM transcriptions. Adding the above code will push transcribe = true or false (depending on the value in default settings) after creating a new extension. --- app/extensions/extension_edit.php | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 5be7c7fb6f..193250f56d 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -679,9 +679,10 @@ if (permission_exists('voicemail_local_after_email')) { $array["voicemails"][$i]["voicemail_local_after_email"] = $voicemail_local_after_email; } + $array["voicemails"][$i]["voicemail_transcription_enabled"] = $voicemail_transcription_enabled; + $array["voicemails"][$i]["voicemail_tutorial"] = $voicemail_tutorial; $array["voicemails"][$i]["voicemail_enabled"] = $voicemail_enabled; $array["voicemails"][$i]["voicemail_description"] = $description; - $array["voicemails"][$i]["voicemail_tutorial"] = $voicemail_tutorial; //make sure the voicemail directory exists if (is_numeric($voicemail_id)) { @@ -886,6 +887,7 @@ $voicemail_file = $row["voicemail_file"]; $voicemail_local_after_email = $row["voicemail_local_after_email"]; $voicemail_enabled = $row["voicemail_enabled"]; + $voicemail_transcription_enabled = $row["voicemail_transcription_enabled"]; $voicemail_tutorial = $row["voicemail_tutorial"]; } unset($sql, $parameters, $row); @@ -1709,6 +1711,30 @@ echo $text['description-voicemail_enabled']."\n"; echo "\n"; echo "\n"; + + echo "