Copy Ticket function copies name and email only

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Copy Ticket function copies name and email only

Post by cwyenberg »

Script URL:
Mods for HESK version: 2018.2.0
HESK version: 2.8.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: copy ticket

Write your message below:

Posted previously on Hesk forum

When I hover over the Copy Ticket button, the link info shows there is an attempt to copy all info over. However, only the Name and address appear in the new ticket.

These are the link details you see from a test ticket when hovering over the Copy Ticket button:

https://testdomain.com/helpdesk/admin/n ... 03/26/2019

Edit...

In the link above you'll notice that after catid=1&priority=3, all remaining field requests are preceded by a "c_". Once that is removed from the link the field will copy over to the new ticket. Where would I look to see where this is being added?

Edit #2...

The line that adds the "c_" is in admin_ticket.php around line 1375 in the section /* Copy ticket button */. I edited this line:

Code: Select all

$linkText .= '&c_' . $k . '=' . $strippedCustomField;
change to:

Code: Select all

$linkText .= '&' . $k . '=' . $strippedCustomField;
and it works.

My question now is, what else would this affect?
Post Reply