[otrs] CustomerTicketZoom article sort order

20 views
Skip to first unread message

Jens Köhler

unread,
Feb 14, 2020, 7:53:53 AM2/14/20
to ot...@lists.otrs.org

Hey guys,

 

please give me a hint on how to change the sort order of articles in CustomerTicketZoom.

 

For AgentTicketZoom there is a sysconfig option called Ticket::Frontend::ZoomExpandSort, which has no effect on the customer side.

 

Our customers want to have a reverse sort order so that the newest articles are the first ones.

 

Changing the source code would be fine aswell, but until now I wasn’t successful in finding the corresponding code parts.

 

 

Regards

Jens

 

Roy Kaldung

unread,
Feb 14, 2020, 2:50:34 PM2/14/20
to User questions and discussions about OTRS.
Hi Jens,

> On Feb 14, 2020, at 1:53 PM, Jens Köhler <koe...@rzhartmann.de> wrote:
>
> Changing the source code would be fine aswell, but until now I wasn’t successful in finding the corresponding code parts.
>

you have to change Kernel/Modules/CustomerTicketZoom.pm, all file locations are relative from the OTRS home directory:

- create the folder structure Custom/Kernel/Modules/
- copy Kernel/Modules/CustomerTicketZoom.pm to Custom/Kernel/Modules/CustomerTicketZoom.pm
- insert after line 138 this:
@ArticleList = reverse @ArticleList;

Should be from:
my @ArticleList = $ArticleObject->ArticleList(
TicketID => $Self->{TicketID},
IsVisibleForCustomer => 1,
DynamicFields => 0,
);

my @ArticleBox;

to

my @ArticleList = $ArticleObject->ArticleList(
TicketID => $Self->{TicketID},
IsVisibleForCustomer => 1,
DynamicFields => 0,
);

@ArticleList = reverse @ArticleList;

my @ArticleBox;


Good luck,
Roy

--
Roy Kaldung


---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs

Jens Köhler

unread,
Feb 17, 2020, 6:49:56 AM2/17/20
to User questions and discussions about OTRS.
Hey Roy,

thanks a lot! Your solution works like a charm.

Have a nice day


-----Ursprüngliche Nachricht-----
Von: otrs [mailto:otrs-b...@lists.otrs.org] Im Auftrag von Roy Kaldung
Gesendet: Freitag, 14. Februar 2020 20:50
An: User questions and discussions about OTRS.
Betreff: Re: [otrs] CustomerTicketZoom article sort order
Reply all
Reply to author
Forward
0 new messages