[rt-users] sorting by custom fields
Dimitry Faynerman
dimitry.faynerman at hypermediasystems.com
Fri Apr 2 13:56:48 EST 2004
Hello,
Could anybody, please, explain me, which special things I have to do do be
able to sort by custom fields. I have this piece of code:
<%INIT>
my $rows = 150;
my $MyTickets = RT::Tickets->new($session{'CurrentUser'});
$MyTickets->LimitWatcher(TYPE => 'Requestor', VALUE =>
session{'CurrentUser'}->EmailAddress);
$MyTickets->RowsPerPage($rows);
$MyTickets->OrderBy(FIELD => $TicketsSortBy, ORDER => $TicketsSortOrder);
</%INIT>
Sort by any other fields works just fine. But when I try to sort by a custom
field all the tickets disappear and nothing shows up.
Thanks,
Dimitry
More information about the rt-users
mailing list