[rt-devel] default ticket sort: descending

Joseph Spenner joseph85750 at yahoo.com
Tue Jul 22 17:39:09 EDT 2003


I'm still working on this, and am almost there (I
think).  The behavior of the "Listing.html" file is
not very clear.  When I first visit a queue (which
sorts Ascending by default), the URL is something like
this:

http://172.26.10.1/Search/Listing.html?ValueOfStatus=open&ValueOfStatus=new&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=2&RowsPerPage=50&NewSearch=1

I tried to manually insert the option which is
inserted when a search is refined to sort descending: 
 TicketsSortOrder=DESC

and hit enter for the browser to make use of the new
value, but the results are still ascending.
Is there some session value that is being used?

I also tried to add the  TicketsSortOrder=DESC
directly into the initial GET located at
/opt/rt2/WebRT/html/Elements/Quicksearch.
The url that was then displayed upon selecting a queue
did contain the TicketsSortOrder=DESC option, but it
still sorted ascending!

If anyone could offer some suggestions, I'd greatly
appreciate it.

Thanks!



--- Joseph Spenner <joseph85750 at yahoo.com> wrote:
>  I'm using RT 2.0.15 and trying to change the
> default
> sort behavior.  By default, when a queue is
> selected,
> it wants to sort ascending ticket order.  I wish to
> change this to descending, so the newest tickets
> appear at the top.  I believe this is defined in the
> ~/rt2/WebRT/html/Search/Listing.html file:
> 
> <%PERL>
> my ($order);
>  my $attr = $col->{'TicketAttribute'};
>  $attr =~ s/Obj->(Name|AsString|AgeAsString)//g;
>   if ($session{'tickets_sort_order'} =~ /^asc$/i) {
>    $order = 'DESC';
>  } else {
>    $order = 'ASC';
>  }
> </%PERL>
> 
> But I can't figure out where the tickets_sort_order
> is
> being defined.
> 
> If anyone else has changed this sort_order behavior,
> I'd sure appreciate any help on where to make the
> change.
> 
> Thanks!
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the Rt-devel mailing list