i got a bug reported by a customer. I tried checking out the code and found out that it "seems" ok.
The error is that the states count are not being reflected as seen on the following image:

As you can see there are 3 tickets in state "closed succesful" which dont count to the closed count (which is 0).
So i went searching for where this is done and checked "CustomerTicketOverview.tt" and found nothing of a filter here.
Code involved in tt.
CustomerTicketOverview.tt
Code: Select all
[% RenderBlockStart("FilterHeader") %]
<li class="[% Data.ClassLI | html %]">
<a class="[% Data.ClassA | html %]" href="[% Env("Baselink") %]Action=[% Env("Action") %];Subaction=[% Env("Subaction") %];Filter=[% Data.Filter | uri %];SortBy=[% Data.SortBy | uri %];OrderBy=[% Data.OrderBy | uri %];">
[% Translate(Data.Name) | html %] ([% Data.Count | html %])
</a>
</li>
[% RenderBlockEnd("FilterHeader") %]
CustomerTicketOverview.pm
Code: Select all
# filter definition
my %Filters = (
MyTickets => {
All => {
Name => 'All',
Prio => 1000,
Search => {
CustomerUserLoginRaw => $Self->{UserID},
OrderBy => $Self->{OrderBy},
SortBy => $Self->{SortBy},
CustomerUserID => $Self->{UserID},
Permission => 'ro',
},
},
Open => {
Name => 'Open',
Prio => 1100,
Search => {
CustomerUserLoginRaw => $Self->{UserID},
StateType => 'Open',
OrderBy => $Self->{OrderBy},
SortBy => $Self->{SortBy},
CustomerUserID => $Self->{UserID},
Permission => 'ro',
},
},
Closed => {
Name => 'Closed',
Prio => 1200,
Search => {
CustomerUserLoginRaw => $Self->{UserID},
StateType => 'Closed',
OrderBy => $Self->{OrderBy},
SortBy => $Self->{SortBy},
CustomerUserID => $Self->{UserID},
Permission => 'ro',
},
},
},
);
SELECT * FROM otrs.ticket_state_type;
and the ticket state for Succesfuly closed is "closed". Tried wich changing the caps at the beggening and doing a otrs.DeleteCache.pl so as to reflect the changes but nothing happened.
What else could i check so as to enable this?
Also the counter for Open tickets i want to edit it so as to reflect only the "open" or "new" tickets.
Any ideas would be greatly appreciated.
For the record the CustomerTicketOverview.pm has not been modified.