mirror of
https://github.com/itflow-org/itflow
synced 2026-09-10 08:45:13 +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']);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ $sql_assets = mysqli_query($mysqli, "SELECT asset_id, asset_name, asset_type FRO
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-thermometer-half"></i></span>
|
||||
<select class="form-select select2" name="priority" required>
|
||||
<option>Low</option>
|
||||
<option>Medium</option>
|
||||
<option selected>Medium</option>
|
||||
<option>High</option>
|
||||
<option>Urgent</option>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user