mirror of
https://github.com/itflow-org/itflow
synced 2026-09-02 04:45:15 +00:00
Ticket default to Medium Priority unless specified, as this is just good practice
This commit is contained in:
@@ -29,9 +29,9 @@ if (isset($_POST['add_ticket'])) {
|
||||
//Generate a unique URL key for clients to access
|
||||
$url_key = randomString(32);
|
||||
|
||||
// Ensure priority is low/med/high (as can be user defined)
|
||||
// Ensure priority is one of the four allowed values (as can be user defined)
|
||||
if ($_POST['priority'] !== "Low" && $_POST['priority'] !== "Medium" && $_POST['priority'] !== "High" && $_POST['priority'] !== "Urgent") {
|
||||
$priority = "Low";
|
||||
$priority = "Medium";
|
||||
} else {
|
||||
$priority = escapeSql($_POST['priority']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user