Page 1 of 1

Custom field is being converted to a hyperlink

Posted: Mon Sep 24, 2012 11:05 am
by kuffs
Hesk: 2.4.1

I have a number of custom fields. One of them is being converted to a hyperlink when it should not be.

The field requests a version number. Entering "3.1.3.6" displays on the ticket as "http://3.1.3.6" (hyperlinked)

It is a standard text field. I have other fields requesting data in the same format but they work correctly. Only the first custom field is being formatted incorrectly.

Enable: Yes
Type: Text Field
Required: Yes
Field Name: Windows app version
Location: Before Message


Any ideas on how to fix?

Thanks.

Re: Custom field is being converted to a hyperlink

Posted: Mon Sep 24, 2012 11:48 am
by Klemen
The URL parser thinks 3.1.3.6 is an IP address hence it's converted into a hyperlink.

To fix this open "submit_ticket.php" in a HTML editor and delete first two lines containing

Code: Select all

hesk_makeURL
Delete just the first two lines containing this code, the last (third) occurrence of hesk_makeURL should be left intact.

Re: Custom field is being converted to a hyperlink

Posted: Mon Sep 24, 2012 12:04 pm
by kuffs
Deleting the lines made it complain that the fields were empty (when they were not).

Luckily i only commented out the lines. I fixed it by removing the "hesk_makeURL" from the lines you specified.