Subject lenght problem

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
piktukas
Posts: 4
Joined: Tue Nov 26, 2024 10:46 am

Subject lenght problem

Post by piktukas »

Script URL:
Version of script: 3.5.1
Hosting company: self hosted
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hello,

almost all responses to sent replys are created as new tickets. I see a problem with the 70 character subject length. The system cuts off the trackid and create it as a new request for responses. How could we make the length of the subject 255 (the subject field in the database is 255 long)

I tired change lenght in new_ticket.php but no success.

OR

Maybe we have solution to identify reply with trackid in message body?
piktukas
Posts: 4
Joined: Tue Nov 26, 2024 10:46 am

Re: Subject lenght problem

Post by piktukas »

Changed 1,70 to 1,255 in
hesk\inc\pipe_functions.inc.php

line "$tmpvar['subject'] = hesk_input($tmpvar['subject'],'','',1,70) or $tmpvar['subject'] = $hesklang['pem'];"

and problem solved.
Cegri
Posts: 7
Joined: Thu Nov 28, 2024 2:11 pm

Re: Subject lenght problem

Post by Cegri »

"almost all responses to sent replys are created as new tickets"

This was also bothering me. It ussually happens when somebody fills a short-form email alias on the form, and later replies from a different e-mail adress.

Hesk checks that the email sender is already registered with the ticket. If not, it starts a new ticket.

I disabled the following lines. The ticket ID is kept, even if the email is from a total stranger. (We are a small company. You might want to consider security issues.)

hesk\inc\pipe_functions.inc.php, around line 178;

Code: Select all

if (!in_array($tmpvar['email'], $customer_emails))
{
	$tmpvar['trackid'] = '';
}
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Subject lenght problem

Post by Klemen »

Cegri is correct; to get counted as a reply, Hesk checks both the tracking ID and the sender. If the sender doesn't match, a new ticket will be created.

The solution posted should fix it.
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
Post Reply