Users can't login when ticket emailed to multiple addresses

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Users can't login when ticket emailed to multiple addresses

Post by Lisaweb »

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,
- Lisa
Klemen
Site Admin
Posts: 10164
Joined: Fri Feb 11, 2005 4:04 pm

Re: Users can't login when ticket emailed to multiple addres

Post by Klemen »

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

Code: Select all

if ($hesk_settings['email_view_ticket'] && strtolower($ticket['email']) != strtolower($my_email) )
{
    hesk_process_messages($hesklang['enmdb'],'NOREDIRECT');
    print_form();
}
to

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 Image

Image 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
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: Users can't login when ticket emailed to multiple addres

Post by Lisaweb »

Thanks Klemen, that fixed it! :D
- Lisa
Post Reply