I saw this, but I didn't think it applied to this case.
Since the email they are replying from is the same, the subject contains the ticket number Re: [#37Z-NDX-ZZU9]
I've looked more closely now and this doesn't happen every time, I need to look into it more closely.
Thanks for the help!
2 issues with piping
Moderator: mkoch227
Re: 2 issues with piping
Please help me how to modify here:
Thank you
Code: Select all
if (hesk_dbNumRows($res))
{
$ticket = hesk_dbFetchAssoc($res);
// Do email addresses match?
$customers = hesk_get_customers_for_ticket($ticket['id']);
$customer_emails = array_map(function($customer) { return $customer['email']; }, $customers);
if (!in_array($tmpvar['email'], $customer_emails))
{
$tmpvar['trackid'] = '';
}
// Is this ticket locked? Force create a new one if it is
if ($ticket['locked'])
{
$tmpvar['trackid'] = '';
}
}
else
{
$tmpvar['trackid'] = '';
}
}
Re: 2 issues with piping
Try removing
Code: Select all
if (!in_array($tmpvar['email'], $customer_emails))
{
$tmpvar['trackid'] = '';
}
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: 2 issues with piping
Hard to say what is going on without seeing your database and all the original emails.
I see two different tracking IDs in the second ticket subject - maybe that caused an issue?
I see two different tracking IDs in the second ticket subject - maybe that caused an issue?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: 2 issues with piping
I had merged the previous tickets and apparently the numbers of the two tickets remain in the subject.
I can give you access to database if is necessary.
Thank you!
I can give you access to database if is necessary.
Thank you!