FYI ArticleTree links are broken

English! place to talk about development, programming and coding
Post Reply
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

FYI ArticleTree links are broken

Post by MichaelR »

Created bug report here: http://bugs.otrs.org/show_bug.cgi?id=7560

The ArticleTree links are not passed through the ArticleAttachmentModules, causing all links with special characters etc to break and redirect page to the dashboard.

Quick fix is to add/replace code around line 1241 in Kernel/Modules/AgentTicketZoom.pm

Code: Select all

my %File = %{ $Article{Atms}->{$Count} };
$File{Filename} = $Self->{LayoutObject}->LinkEncode( $File{Filename} || '' );

            # show attachment info
            $Self->{LayoutObject}->Block(
                Name => 'TreeItemAttachmentItem',
                Data => {
                    %Article,
                    %File,
                    FileID => $Count,
                    Target => $Target,
                },
            );
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
Alexander Halle
Znuny expert
Posts: 296
Joined: 04 Jul 2010, 17:49
Znuny Version: 3.1.x
Real Name: Alexander Halle
Company: radprax MVZ GmbH
Location: Wuppertal
Contact:

Re: FYI ArticleTree links are broken

Post by Alexander Halle »

Thanks for this posting and all your others :)
Alexander Halle System: OTRS 3.1.x, Ubuntu 10.04.x LTS, MySQL 5.1.x, Apache 2.2.x
OTRS Community Links: User Meetings, Projects
Post Reply