From e0e6a529ec9c59a4a27aabf963f758a427ac0f10 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 28 Jan 2022 08:54:37 -0700 Subject: [PATCH] Only use the transcription_enabled_default on add. --- app/extensions/extension_edit.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index a677eb471f..a2c40a39d8 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2021 + Portions created by the Initial Developer are Copyright (C) 2008-2022 the Initial Developer. All Rights Reserved. Contributor(s): @@ -676,7 +676,9 @@ $array["voicemails"][$i]["voicemail_enabled"] = $voicemail_enabled; $array["voicemails"][$i]["voicemail_description"] = $description; $array["voicemails"][$i]["voicemail_tutorial"] = $voicemail_tutorial; - $array["voicemails"][$i]["voicemail_transcription_enabled"] = $_SESSION['voicemail']['transcription_enabled_default']['boolean'] ?: false; + if ($action == 'add') { + $array["voicemails"][$i]["voicemail_transcription_enabled"] = $_SESSION['voicemail']['transcription_enabled_default']['boolean'] ?: false; + } //make sure the voicemail directory exists if (is_numeric($voicemail_id)) {