mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Remove the !empty(voicemail_mail_to) condition
The toggle for keeps local after email harms nothing. So we don't need to restrict it.
This commit is contained in:
@@ -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 "</tr>\n";
|
||||
}
|
||||
|
||||
if (
|
||||
permission_exists('voicemail_file') &&
|
||||
permission_exists('voicemail_local_after_email')
|
||||
) {
|
||||
if (permission_exists('voicemail_file') && permission_exists('voicemail_local_after_email')) {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-voicemail_local_after_email']."\n";
|
||||
|
||||
Reference in New Issue
Block a user