🐛 Fixed bug where req. data wasn't being loaded

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
2020-08-09 14:30:18 +01:00
parent acf8476583
commit 20c71572ac
2 changed files with 70 additions and 70 deletions

View File

@@ -17,7 +17,8 @@
$new_ticket_alert = array("danger", "Failed to save update: " . $e->getMessage());
}
header('Location: /view?rid=' . $_POST['rid'], true);
} else { // Form not yet submitted
}
// Get ticket
try {
$ticket_stmt = "SELECT * FROM tickets WHERE uuid=:uuid";
@@ -54,7 +55,6 @@
} catch (PDOException $e) {
$new_ticket_alert = array("danger", "Failed to get subscribers: " . $e->getMessage());
}
}
$authorised_users = array();

View File

@@ -26,7 +26,8 @@
}
}
header('Location: /view?rid=' . $tkt_uuid, true);
} else { // Form not yet submitted
}
// Get ticket
try {
$ticket_stmt = "SELECT * FROM tickets WHERE uuid=:uuid";
@@ -63,7 +64,6 @@
} catch (PDOException $e) {
echo("Error: " . $e->getMessage());
}
}
$authorised_users = array();