Sort by TicketFreeText in AgentTicketOverviewSmall

Moderator: crythias

Locked
cgouhier
Znuny newbie
Posts: 1
Joined: 03 Mar 2012, 23:18
Znuny Version: 3_0_10
Real Name: Christophe Gouhier
Company: Revel Services

Sort by TicketFreeText in AgentTicketOverviewSmall

Post by cgouhier »

Hello,

I enabled TicketFreeText1 for agents, so they could fill in an estimated resolution time.

This TicketFreeText1 is shown as a new column in AgentTicketOverviewSmall and CustomerTicketOverview, and il want to allow users to sort tickets on that new column called "Tps estimé".

In my theme's CustomerTicketOverview.dtl, i added some code and it works well, but in AgentTicketOverviewSmall, i did the same and it does not work well, sort works only on first click, then "OrderBy" doesn't get the value "up" or "down" when clicking on the column title, and the current view is changing when not the default view.

here is the code i wrote in AgentTicketOverviewSmall.dtl :

----------------------------
<!-- REVEL :block:affichage temps estimé -->
<th class="TicketFreeText1 $QData{"CSS"}">
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"};$Data{"LinkSort"};SortBy=TicketFreeText1;OrderBy=$LQData{"OrderBy"}">Tps estimé</a>
</th>
<!-- fin REVEL :block:fin affichage temps estimé -->
-------------------------


This code in Customer works well :
------------

<!-- REVEL :block:affichage temps estimé -->
<th class="TicketFreeText1 $LQData{"TicketFreeText1"}">
<a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=$Env{"Subaction"};SortBy=TicketFreeText1;OrderBy=$LQData{"OrderBy"};Filter=$LQData{"Filter"}">
Tps estimé
</a>
</th>
<!-- fin REVEL :block:fin affichage temps estimé -->
---------------


Thanks in advance for help


Christophe
Locked