From 3a1d2bd4bc9642bf1c411de950f38bf3e79c86d9 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 31 Dec 2012 16:38:45 +0000 Subject: [PATCH] Enable the ability to clear the greeting id --- app/voicemails/voicemail_edit.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index c89e5ab7d8..c6b9eb91e0 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -144,6 +144,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if (strlen($greeting_id) > 0) { $sql .= "greeting_id = '$greeting_id', "; } + else { + $sql .= "greeting_id = null, "; + } $sql .= "voicemail_mail_to = '$voicemail_mail_to', "; $sql .= "voicemail_attach_file = '$voicemail_attach_file', "; $sql .= "voicemail_local_after_email = '$voicemail_local_after_email', ";