Page 1 of 1

A small correction (3.6.0)

Posted: Fri Jun 13, 2025 2:36 am
by shddcit
In the file admin/admin_ticket.php, in the line

Code: Select all

$html.='<a class="btn btn-links unlink" data-ticket1='.$linked_ticket['id'].' data-ticket2='.$ticket['id'].' data-trackid='.$linked_ticket['trackid'].' data-action="admin_ticket.php?track='.$trackingID.'&amp;Refresh='.rand(10000,99999).'" href="javascript:;">Unlink</a>';
there is a direct use of the word "Unlink", which will always be displayed in English regardless of the Hesk localization settings.

I made the following correction in this file:

Code: Select all

$html .= '<a class="btn btn-links unlink" data-ticket1="'.$linked_ticket['id'].'" data-ticket2="'.$ticket['id'].'" data-trackid="'.$linked_ticket['trackid'].'" data-action="admin_ticket.php?track='.$trackingID.'&amp;Refresh='.rand(10000,99999).'" href="javascript:;">'.$hesklang['unlink_btn'].'</a>';
Then, I added the following line to the English language file /language/en/texp.php:

Code: Select all

$hesklang['unlink_btn'] = 'Unlink';
and, accordingly, the same entry with the Russian translation to the Russian localization file /language/ru/texp.php.

The "Unlink" button is dynamic, and its text does not go beyond its boundaries.

Re: A small correction (3.6.0)

Posted: Fri Jun 13, 2025 4:57 am
by Klemen
Thanks for the correction, looks like we missed this one.