mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Fixed send invoice/quote email redirects so they go back to the page you were last on
This commit is contained in:
4
post.php
4
post.php
@@ -3378,7 +3378,7 @@ if(isset($_GET['email_quote'])){
|
||||
|
||||
$_SESSION['alert_message'] = "Quote has been sent";
|
||||
|
||||
header("Location: quotes.php");
|
||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||
|
||||
|
||||
} catch (Exception $e) {
|
||||
@@ -4076,7 +4076,7 @@ if(isset($_GET['email_invoice'])){
|
||||
|
||||
$_SESSION['alert_message'] = "Invoice has been sent";
|
||||
|
||||
header("Location: invoices.php");
|
||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||
|
||||
|
||||
} catch (Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user