Found a bug - CustomerTicketZoom.tt Data.Link

English! place to talk about development, programming and coding
Post Reply
momoaux
Znuny newbie
Posts: 1
Joined: 28 Sep 2021, 20:36
Znuny / OTRS Version: 6.0.30
Real Name: Martin S.

Found a bug - CustomerTicketZoom.tt Data.Link

Post by momoaux »

Hi, if I use Show Link in a Dynamic Field which contains a whole URL like https://example.com/whatever.html
The CustomerTicketZoom.tt renders it with the https://example.co[...] also in the href
so the HTML looks like

<span title="https://example.com/whatever.html"><a href="https://example.co[...]" class="DynamicFieldLink" target="_blank">https://example.co[...]</a></span>

It renders correct in the title with the [% Data.Title | html %] but shortened with [% Data.Link | Interpolate %] so I guess somwhere deeper those two values are switched anywhere.

It works correct in the Agent Zoom but not in the customer zoom.

Can somebody with some knowledge where these values are set please check this?

If needed, I can also report this to github, but I'm searching for a quick workaround.
As a dirty hack, I use [% Data.Title | html %] in the href and [% Data.Link | Interpolate %] in the title but this will break if the bug is fixed.
root
Administrator
Posts: 3046
Joined: 18 Dec 2007, 12:23
Znuny / OTRS Version: Znuny LTS and 4/5/6
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Found a bug - CustomerTicketZoom.tt Data.Link

Post by root »

Hi momoaux,

Thank you for reporting, I can confirm this and create an issue.

- Roy
Znuny LTS and ((OTRS) Community Edition CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
root
Administrator
Posts: 3046
Joined: 18 Dec 2007, 12:23
Znuny / OTRS Version: Znuny LTS and 4/5/6
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Found a bug - CustomerTicketZoom.tt Data.Link

Post by root »

Hi momoaux,

This will be fixed in the upcoming release 6.0.39/6.2.2: https://github.com/znuny/Znuny/blob/rel ... CHANGES.md

- Roy
Znuny LTS and ((OTRS) Community Edition CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply