diff --git a/app/fax/fax_log_delete.php b/app/fax/fax_log_delete.php index b8e80d728f..6d813ebd21 100755 --- a/app/fax/fax_log_delete.php +++ b/app/fax/fax_log_delete.php @@ -19,6 +19,7 @@ else { //get the id if (count($_GET) > 0) { $id = check_str($_GET["id"]); + $fax_uuid = check_str($_GET["fax_uuid"]); } if (strlen($id)>0) { @@ -33,7 +34,6 @@ if (strlen($id)>0) { //redirect the user $_SESSION['message'] = $text['message-delete']; - header('Location: fax_logs.php'); - + header('Location: fax_logs.php?id=$fax_uuid'); ?> \ No newline at end of file diff --git a/app/fax/fax_log_edit.php b/app/fax/fax_log_edit.php index ece5177cf9..8a093c4308 100755 --- a/app/fax/fax_log_edit.php +++ b/app/fax/fax_log_edit.php @@ -20,13 +20,14 @@ else { if (isset($_REQUEST["id"])) { $action = "update"; $fax_log_uuid = check_str($_REQUEST["id"]); + $fax_uuid = check_str($_REQUEST["fax_uuid"]); } else { $action = "add"; } //get http post variables and set them to php variables - if (count($_POST)>0) { + if (count($_POST) > 0) { $fax_log_uuid = check_str($_POST["fax_log_uuid"]); $fax_success = check_str($_POST["fax_success"]); $fax_result_code = check_str($_POST["fax_result_code"]); @@ -91,6 +92,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //add or update the database if ($_POST["persistformvar"] != "true") { + /* if ($action == "add" && permission_exists('fax_log_add')) { $sql = "insert into v_fax_logs "; $sql .= "("; @@ -150,6 +152,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { return; } //if ($action == "add") + */ if ($action == "update" && permission_exists('fax_log_edit')) { $sql = "update v_fax_logs set "; @@ -236,8 +239,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "