From eb26156159822fc6694e71b43d3117cb45168af8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 21 Feb 2025 13:16:11 -0700 Subject: [PATCH] Remove the !empty(voicemail_mail_to) condition The toggle for keeps local after email harms nothing. So we don't need to restrict it. --- app/voicemails/voicemail_edit.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index 1da52e957e..083c525d59 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -177,7 +177,7 @@ if (permission_exists('voicemail_file')) { $array['voicemails'][0]['voicemail_file'] = $voicemail_file; } - if (permission_exists('voicemail_local_after_email') && !empty($voicemail_mail_to)) { + if (permission_exists('voicemail_local_after_email')) { $array['voicemails'][0]['voicemail_local_after_email'] = $voicemail_local_after_email ?? 'false'; } $array['voicemails'][0]['voicemail_enabled'] = $voicemail_enabled; @@ -874,10 +874,7 @@ echo "\n"; } - if ( - permission_exists('voicemail_file') && - permission_exists('voicemail_local_after_email') - ) { + if (permission_exists('voicemail_file') && permission_exists('voicemail_local_after_email')) { echo "\n"; echo "\n"; echo " ".$text['label-voicemail_local_after_email']."\n";