modify AgentTicketOverviewSmall

Moderator: crythias

Locked
richardf
Znuny newbie
Posts: 10
Joined: 01 Jun 2012, 15:37
Znuny Version: ITSM 3.0.5
Real Name: richard
Company: navaho

modify AgentTicketOverviewSmall

Post by richardf »

hello
we've been successful in modifying this dtl file in order to add a OWNER column in the TicketQueueView.
but we're facing a problem when trying to order by OWNER by clicking on this new header, after a search action or when using filter :
it simply reopen the Search box and does not order by Owner (our goal is to visualy estimate the workload for each owner).

we don't get this behaviour with the titles/headers already there by default.
So I guess the modification we've made in the code is the cause of this problem.

No problem neither when clicking on the OWNER header right after displaying the Queue view.

the difference I've notice :
- after a search using a filter, when clicking on the STATE column header, the browser shows :
[my otrs site]/index.pl?Action=AgentTicketSearch;Filter=;View=;Profile=last-search;TakeLastSearch=1;Subaction=Search;;SortBy=State;OrderBy=
- after a search using a filter, when clicking on the OWNER column header, the browser shows :
[my otrs site]/otrs/index.pl?Action=AgentTicketSearch;;SortBy=Owner;OrderBy=

If I try copy/paste the missing paramaters in the address bar after a search : it works fine (the OWNER columns get sorted correctly and do not reopen the Search box).

Does any one have an idea on how to fix this ?

thanks for your help

richard
richardf
Znuny newbie
Posts: 10
Joined: 01 Jun 2012, 15:37
Znuny Version: ITSM 3.0.5
Real Name: richard
Company: navaho

Re: modify AgentTicketOverviewSmall

Post by richardf »

I think I got it working (I post this if this helps someone) :

1/modify TicketOverviewSmall.pm
==> Add the Owner tag : my @Col = (qw(TicketNumber Age Owner State Type Service Queue CustomerID CustomerCompanyName));

2/ modify AgentTicketOverviewSmall.dtl
==> add the lines for the new header (OWNER in my case) :
<!-- dtl:block:OverviewNavBarPageOwner -->
<th class="Owner $QData{"CSS"}">
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"};$Data{"LinkSort"};SortBy=Owner;OrderBy=$LQData{"OrderBy"}">$Text{"Owner"}</a>
</th>
<!-- dtl:block:OverviewNavBarPageOwner -->

I'll wait a few days and tag it as SOLVED :)
Locked