Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honor ticket number in subject line without brackets #873

Merged
merged 1 commit into from
Jan 3, 2014

Conversation

greezybacon
Copy link
Contributor

We introduced a glitch in 29b3714, which was the patch that introduced matching on email headers other than the Subject.

I misinterpreted the original preg_match() regex, thinking that it was requiring brackets. Looking at it again today, I see that it didn't. The current one does, however, require surrounding brackets.

Fixes osTicket/osTicket#342

We introduced a glitch in 29b3714, which was the patch that introduced
matching on email headers other than the Subject.

I misinterpreted the original `preg_match()` regex, thinking that it was
requiring brackets. Looking at it again today, I see that it didn't. The
current one does, however, require surrounding brackets.

This patch also allows for extra letters or dashes between the `#` and the
ticket number. Eventually we should allow the ticket number itself to have
extra characters -- be formattable.

Fixes osTicket/osTicket#342
protich added a commit that referenced this pull request Jan 3, 2014
Honor ticket number in subject line without brackets

Reviewed-By: Peter Rotich <[email protected]>
@protich protich merged commit eadeffe into osTicket:develop Jan 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Client email reply to ticket opens as new ticket number
2 participants