mirror of https://github.com/itflow-org/itflow
Parse Tickets based off of configured Ticket Prefix
This commit is contained in:
parent
791125a060
commit
83bcae3962
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue