Script URL:
Version of script: 2.3
What terms did you try when SEARCHING for a solution: multiple emails login
Write your message below:
I think I may have found a bug? I enabled "Allow customers to enter multiple contact emails." However, if we or our customers create a ticket using multiple emails, the customers are not able to login to see the ticket. As none of the emails entered will open the ticket.
Unfortunately, we really need to use the multiple email feature, as we have many customers that need to copy their purchasing dept, etc. Is there a fix available for this? Perhaps the script wants the entire line of email addresses, and so will not accept any entry that contains just one of them? Or is there something else that I need to do, that I am not aware of?
Thanks much,
Users can't login when ticket emailed to multiple addresses
Moderator: mkoch227
Re: Users can't login when ticket emailed to multiple addres
A bug indeed, thanks for reporting it!
To fix the issue either download Hesk 23 again and upload file "ticket.php" to the server, or manually modify your ticket.php - change to
To fix the issue either download Hesk 23 again and upload file "ticket.php" to the server, or manually modify your ticket.php - change
Code: Select all
if ($hesk_settings['email_view_ticket'] && strtolower($ticket['email']) != strtolower($my_email) )
{
hesk_process_messages($hesklang['enmdb'],'NOREDIRECT');
print_form();
}
Code: Select all
if ($hesk_settings['email_view_ticket'])
{
if ($hesk_settings['multi_eml'])
{
$valid_emails = explode(',',strtolower($ticket['email']));
if ( ! in_array(strtolower($my_email), $valid_emails) )
{
hesk_process_messages($hesklang['enmdb'],'NOREDIRECT');
print_form();
}
}
elseif (strtolower($ticket['email']) != strtolower($my_email))
{
hesk_process_messages($hesklang['enmdb'],'NOREDIRECT');
print_form();
}
}
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