From b9e6aeef009d047c8a93cb94b95c750a0bb5a83a Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 4 Dec 2014 08:00:20 +0000 Subject: [PATCH] Fix the redirect on saving the voicemail settings to make it faster to setup. --- app/voicemails/voicemail_edit.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index 432d4d57de..65162dd20f 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -107,9 +107,7 @@ else { )"; $db->exec(check_sql($sqli)); //redirect the browser -// $_SESSION["message"] = $text['message-add']; -// header("Location: voicemail_edit.php?id=".$voicemail_uuid); -// return; + $_SESSION["message"] = $text['message-add']; } if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { @@ -205,12 +203,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { unset($sql); $_SESSION["message"] = $text['message-update']; - if ($referer_path == "/app/voicemails/voicemail_messages.php") { - header("Location: voicemail_messages.php?".$referer_query); - } - else { - header("Location: voicemail_edit.php?id=".$voicemail_uuid); - } + header("Location: voicemail_edit.php?id=".$voicemail_uuid); return; } //if ($action == "update") } //if ($_POST["persistformvar"] != "true")