bug fix for voicemail edit transcription
This commit is contained in:
parent
6d356194ba
commit
687ba8f554
|
|
@ -41,8 +41,9 @@
|
||||||
$language = new text;
|
$language = new text;
|
||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//initialize the destinations object
|
//initialize the core objects
|
||||||
$destination = new destinations;
|
$destination = new destinations;
|
||||||
|
$settings = new settings(['database' => $database, 'domain_uuid' => $domain_uuid, 'user_uuid' => $user_uuid]);
|
||||||
|
|
||||||
//action add or update
|
//action add or update
|
||||||
if (!empty($_REQUEST["id"]) && is_uuid($_REQUEST["id"])) {
|
if (!empty($_REQUEST["id"]) && is_uuid($_REQUEST["id"])) {
|
||||||
|
|
@ -63,6 +64,7 @@
|
||||||
$voicemail_option_digits = '';
|
$voicemail_option_digits = '';
|
||||||
$voicemail_option_description = '';
|
$voicemail_option_description = '';
|
||||||
$voicemail_mail_to = '';
|
$voicemail_mail_to = '';
|
||||||
|
$transcribe_enabled = $settings->get('transcribe', 'enabled', false);
|
||||||
|
|
||||||
//get http variables and set them to php variables
|
//get http variables and set them to php variables
|
||||||
$referer_path = $_REQUEST["referer_path"] ?? '';
|
$referer_path = $_REQUEST["referer_path"] ?? '';
|
||||||
|
|
@ -833,7 +835,7 @@
|
||||||
echo "</tr>\n";
|
echo "</tr>\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 "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
echo " ".$text['label-voicemail_transcription_enabled']."\n";
|
echo " ".$text['label-voicemail_transcription_enabled']."\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue