From e4da37bd7a24ebf23799a4c3ad3ff300bb676a8a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 20 Sep 2016 09:51:48 -0600 Subject: [PATCH] Update voicemail_edit.php --- app/voicemails/voicemail_edit.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index 090b34e523..db720d2b43 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_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-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): @@ -56,6 +56,7 @@ else { $voicemail_password = check_str($_POST["voicemail_password"]); $greeting_id = check_str($_POST["greeting_id"]); $voicemail_options = $_POST["voicemail_options"]; + $voicemail_alternate_greet_id = check_str($_POST["voicemail_alternate_greet_id"]); $voicemail_mail_to = check_str($_POST["voicemail_mail_to"]); $voicemail_file = check_str($_POST["voicemail_file"]); $voicemail_local_after_email = check_str($_POST["voicemail_local_after_email"]); @@ -142,6 +143,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "voicemail_id, "; $sql .= "voicemail_password, "; $sql .= "greeting_id, "; + $sql .= "voicemail_alternate_greet_id, "; $sql .= "voicemail_mail_to, "; $sql .= "voicemail_file, "; $sql .= "voicemail_local_after_email, "; @@ -155,6 +157,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "'".$voicemail_id."', "; $sql .= "'".$voicemail_password."', "; $sql .= (($greeting_id != '') ? "'".$greeting_id."'" : 'null').", "; + $sql .= (($voicemail_alternate_greet_id != '') ? "'".$voicemail_alternate_greet_id."'" : 'null').", "; $sql .= "'".$voicemail_mail_to."', "; $sql .= "'".$voicemail_file."', "; $sql .= "'".$voicemail_local_after_email."', "; @@ -172,6 +175,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "voicemail_id = '".$voicemail_id."', "; $sql .= "voicemail_password = '".$voicemail_password."', "; $sql .= "greeting_id = ".(($greeting_id != '') ? "'".$greeting_id."'" : 'null').", "; + $sql .= "voicemail_alternate_greet_id = ".(($voicemail_alternate_greet_id != '') ? "'".$voicemail_alternate_greet_id."'" : 'null').", "; $sql .= "voicemail_mail_to = '".$voicemail_mail_to."', "; $sql .= "voicemail_file = '".$voicemail_file."', "; $sql .= "voicemail_local_after_email = '".$voicemail_local_after_email."', "; @@ -256,6 +260,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $voicemail_id = $row["voicemail_id"]; $voicemail_password = $row["voicemail_password"]; $greeting_id = $row["greeting_id"]; + $voicemail_alternate_greet_id = $row["voicemail_alternate_greet_id"]; $voicemail_mail_to = $row["voicemail_mail_to"]; $voicemail_file = $row["voicemail_file"]; $voicemail_local_after_email = $row["voicemail_local_after_email"]; @@ -347,6 +352,17 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; + echo " ".$text['label-voicemail_alternate_greet_id']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo " ".$text['description-voicemail_alternate_greet_id']."\n"; + echo "\n"; + echo "\n"; + echo " "; echo " ".$text['label-options'].""; echo " ";