🐛 Fixed bug where req. data wasn't being loaded
Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user