Parse Tickets based off of configured Ticket Prefix

This commit is contained in:
johnnyq 2022-12-12 19:44:55 -05:00
parent 791125a060
commit 83bcae3962
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ if ($emails) {
$date = trim(mysqli_real_escape_string($mysqli, htmlentities(strip_tags($metadata[0]->date))));
// Check if we can identify a ticket number (in square brackets)
if (preg_match('/\[TCK-\d+\]/', $subject, $ticket_number)) {
if (preg_match("/\[$config_ticket_prefix\d+\]/", $subject, $ticket_number)) {
// Get the actual ticket number (without the brackets)
preg_match('/\d+/', $ticket_number[0], $ticket_number);