Hello everybody,
I am using Otrs 2.4.7 and wanted to list more tickets in
AgentTicketQueue.
Since I'm using the preview-view I raised the value for PageShown in
Ticket::Frontend::Overview###Preview using SysConfig.
Everything went fine until I entered a value greater than 50.
No matter what I entered, I could not get more than 50 tickets to get
listed.
So I looked around and stumbled upon a magic number of 50 in method
Run() Kernel/Modules/AgentTicketQueue.pm:
# search all tickets
@ViewableTickets = $Self->{TicketObject}->TicketSearch(
StateIDs => \...@viewablestateids,
LockIDs => \...@viewablelockids,
QueueIDs => \...@viewablequeueids,
%Sort,
Permission => $Permission,
UserID => $Self->{UserID},
Result => 'ARRAY',
Limit => $Self->{Start} + 50,
);
It seems otrs Kernel::System::Ticket::TicketSearch() uses the parameter
Limit to, well limit the number of results fetch from the database.
By raising the '50' to '100' I could get 100 tickets listed and so on.
Is there something I'm missing? I think this is an unnecessary
limitation.
Instead of the 50 it should use the number entered at PageShown in
Ticket::Frontend::Overview###Small|Medium|Preview.
Problem is I don't know how Otrs determines which view is used
(Small/Medium/Preview).
Otherwise I would propose a patch like:
Limit => $Self->{Start} + $PageShown,
Thank you in advance for any comments,
Greetings, gerhard
---------------------------------------------------------------------
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/