Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Incorrect URL forming in Status View (Medium) #506

Closed
sergiykhan opened this issue Nov 1, 2023 · 2 comments
Closed

BUG: Incorrect URL forming in Status View (Medium) #506

sergiykhan opened this issue Nov 1, 2023 · 2 comments
Assignees
Labels
1 - 🐞 bug 🐞 An issue with the system. 4 - verified This issue or pull request was verified.

Comments

@sergiykhan
Copy link

Version

Znuny LTS 6.5.4

Description

There a bug in Kernel/Output/HTML/Templates/Standard/AgentTicketOverviewMedium.tt leading to incorrect forming of the URL under CustomerID for the Medium view on the Status View page.

Actual behavior

The formed link is https://address/otrs/[%%20Env(

Expected behavior

Link link should be https://address/otrs/index.pl?Action=AgentCustomerInformationCenter;CustomerID=whatever

Solution

The href is missing Interpolate in href="[% Config("CustomerDBLink") %]"

--- a/Kernel/Output/HTML/Templates/Standard/AgentTicketOverviewMedium.tt
+++ b/Kernel/Output/HTML/Templates/Standard/AgentTicketOverviewMedium.tt
@@ -209,7 +209,7 @@
 [% IF Data.IsITSMIncidentProblemManagementInstalled %]
                         <td>
 [% RenderBlockStart("CustomerIDRW") %]
-                            <label>[% Translate("CustomerID") | html %]</label><a href="[% Config("CustomerDBLink") %]" class="AsPopup PopupType_TicketAction" [% Config("CustomerDBLinkTarget") %]>[% Data.CustomerID | html %]</a>
+                            <label>[% Translate("CustomerID") | html %]</label><a href="[% Config("CustomerDBLink") | Interpolate %]" class="AsPopup PopupType_TicketAction" [% Config("CustomerDBLinkTarget") %]>[% Data.CustomerID | html %]</a>
 [% RenderBlockEnd("CustomerIDRW") %]
 [% RenderBlockStart("CustomerIDRO") %]
                             <label>[% Translate("CustomerID") | html %]</label>[% Data.CustomerID | html %]
@sergiykhan sergiykhan changed the title Incorrect URL forming in Status View (Medium) BUG: Incorrect URL forming in Status View (Medium) Nov 1, 2023
@NiklasSchmitt NiklasSchmitt self-assigned this Nov 6, 2023
@NiklasSchmitt
Copy link
Member

internal issue: 769

Affects Znuny LTS and also Znuny 7.

@NiklasSchmitt NiklasSchmitt added 1 - 🐞 bug 🐞 An issue with the system. 4 - verified This issue or pull request was verified. labels Nov 8, 2023
@NiklasSchmitt
Copy link
Member

Fixed with the following commits:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - 🐞 bug 🐞 An issue with the system. 4 - verified This issue or pull request was verified.
Development

No branches or pull requests

2 participants