Add Ticket Template order under project templates, this will state the execution order when deployed

This commit is contained in:
johnnyq
2024-04-05 18:20:09 -04:00
parent 60212b380c
commit b22781d2ea
5 changed files with 31 additions and 6 deletions

View File

@@ -42,6 +42,17 @@ if (isset($_POST['edit_project_template'])) {
header("Location: " . $_SERVER["HTTP_REFERER"]);
}
if (isset($_POST['edit_ticket_template_order'])) {
validateTechRole();
$ticket_template_id = intval($_POST['ticket_template_id']);
$order = intval($_POST['order']);
mysqli_query($mysqli, "UPDATE ticket_templates SET ticket_template_order = $order WHERE ticket_template_id = $ticket_template_id");
header("Location: " . $_SERVER["HTTP_REFERER"]);
}
if (isset($_POST['add_ticket_template_to_project_template'])) {
validateTechRole();