Fix the redirect on saving the voicemail settings to make it faster to setup.

This commit is contained in:
Mark Crane
2014-12-04 08:00:20 +00:00
parent 22b85f7d92
commit b9e6aeef00

View File

@@ -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")