OTRS/otrs — pull request #356 by s7design (2014-12-01 16:26:25+00:00)
Title: [Rel-4_0 - Bug 10802] Ticket Count in Dashboard Widget  with set Filter

http://bugs.otrs.org/show_bug.cgi?id=10802

Hi Martin,

I have tested this for a while. The problem is if there are LockIDs or Locks attribute for DashboardWidget.
I believe that I fixed it, but I am not sure is it the best solution.

Problem is in DashboardTicketGeneric.pm in loop on line 627

if (
!$Self->{Config}->{IsProcessWidget}
|| IsArrayRefWithData( $Self->{ProcessList} )
)
{
$Summary->{$Type} = $TicketObject->TicketSearch(
Result => 'COUNT',
%TicketSearch,
%{ $TicketSearchSummary{$Type} },
%{ $Self->{ColumnFilter} },
%ColumnFilter,
);
}

In this loop before my fix $TicketSearch{LockIDs} was wrong for some item and because of that ticket count was not good.
We can discuss about it to solve this issue.

Regards
Zoran