mirror of https://github.com/itflow-org/itflow
Guest ticket feedback now shows friendly ticket prefix & number
This commit is contained in:
parent
2ca92744f3
commit
25e7ed6a6e
|
|
@ -8,6 +8,7 @@ All notable changes to ITFlow will be documented in this file.
|
|||
- Debug now shows the current git branch
|
||||
- Individual POST handler logic pages can no longer be accessed directly
|
||||
- Auto-acknowledgement email for email parsed tickets now contains guest link
|
||||
- Guest ticket feedback now shows friendly ticket prefix & number, rather than just the ID
|
||||
- Bugfix: Ticket edit modal not showing multi-client/no-client projects
|
||||
- Bugfix: Asset interface losing DHCP setting
|
||||
- Bugfix: Editing / creating recurring expenses results in error 500 due to incorrect var name
|
||||
|
|
|
|||
|
|
@ -183,9 +183,14 @@ if (isset($_GET['add_ticket_feedback'], $_GET['url_key'])) {
|
|||
if (mysqli_num_rows($sql) == 1) {
|
||||
// Add feedback
|
||||
mysqli_query($mysqli, "UPDATE tickets SET ticket_feedback = '$feedback' WHERE ticket_id = $ticket_id AND ticket_url_key = '$url_key'");
|
||||
|
||||
// Notify on bad feedback
|
||||
if ($feedback == "Bad") {
|
||||
appNotify("Feedback", "Guest rated ticket ID $ticket_id as bad", "ticket.php?ticket_id=$ticket_id");
|
||||
$ticket_details = mysqli_fetch_array(mysqli_query($mysqli, "SELECT ticket_prefix, ticket_number FROM tickets WHERE ticket_id = $ticket_id LIMIT 1"));
|
||||
$ticket_prefix = sanitizeInput($ticket_details['ticket_prefix']);
|
||||
$ticket_number = intval($ticket_details['ticket_number']);
|
||||
|
||||
appNotify("Feedback", "Guest rated ticket number $ticket_prefix$ticket_number (ID: $ticket_id) as bad", "ticket.php?ticket_id=$ticket_id");
|
||||
}
|
||||
|
||||
$_SESSION['alert_message'] = "Feedback recorded - thank you";
|
||||
|
|
|
|||
Loading…
Reference in New Issue