Fix the redirect on saving the voicemail settings to make it faster to setup.
This commit is contained in:
@@ -107,9 +107,7 @@ else {
|
|||||||
)";
|
)";
|
||||||
$db->exec(check_sql($sqli));
|
$db->exec(check_sql($sqli));
|
||||||
//redirect the browser
|
//redirect the browser
|
||||||
// $_SESSION["message"] = $text['message-add'];
|
$_SESSION["message"] = $text['message-add'];
|
||||||
// header("Location: voicemail_edit.php?id=".$voicemail_uuid);
|
|
||||||
// return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
@@ -205,12 +203,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
unset($sql);
|
unset($sql);
|
||||||
|
|
||||||
$_SESSION["message"] = $text['message-update'];
|
$_SESSION["message"] = $text['message-update'];
|
||||||
if ($referer_path == "/app/voicemails/voicemail_messages.php") {
|
header("Location: voicemail_edit.php?id=".$voicemail_uuid);
|
||||||
header("Location: voicemail_messages.php?".$referer_query);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
header("Location: voicemail_edit.php?id=".$voicemail_uuid);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
} //if ($action == "update")
|
} //if ($action == "update")
|
||||||
} //if ($_POST["persistformvar"] != "true")
|
} //if ($_POST["persistformvar"] != "true")
|
||||||
|
|||||||
Reference in New Issue
Block a user