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