Skip to content

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

Closed

Description

@sergiykhan

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 %]

Activity

  1. changed the title [-]Incorrect URL forming in Status View (Medium)[/-] [+]BUG: Incorrect URL forming in Status View (Medium)[/+] on Nov 1, 2023
  2. self-assigned this
    on Nov 6, 2023
  3. NiklasSchmitt commented on Nov 8, 2023

    @NiklasSchmitt
    Contributor

    internal issue: 769

    Affects Znuny LTS and also Znuny 7.

  4. NiklasSchmitt commented on Nov 30, 2023

    @NiklasSchmitt
    Contributor

    Fixed with the following commits:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

1 - 🐞 bug 🐞An issue with the system.3 - verifiedThis issue or pull request was verified.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions