[Rt-commit] r4580 - in rtir/branches/1.9-EXPERIMENTAL:
html/RTIR/Search/Elements
alexmv at bestpractical.com
alexmv at bestpractical.com
Fri Feb 24 04:12:28 EST 2006
Author: alexmv
Date: Fri Feb 24 04:12:28 2006
New Revision: 4580
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Search/Elements/ShowResults
Log:
r9302 at zoq-fot-pik: chmrr | 2006-02-24 04:11:44 -0500
* The rest of the code wants pipe-separated strings for multiple orderby
Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Search/Elements/ShowResults
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Search/Elements/ShowResults (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Search/Elements/ShowResults Fri Feb 24 04:12:28 2006
@@ -34,6 +34,9 @@
$Query = join ' AND ', map "( $_ )", grep $_, $BaseQuery, $Query;
+$OrderBy = join "|", @{$OrderBy} if ref $OrderBy;
+$Order = join "|", @{$Order} if ref $Order;
+
my $collection = $session{'tickets'} || RT::Tickets->new( $session{'CurrentUser'} );
$collection->FromSQL( $Query ) if $Query;
$session{'tickets'} = $collection;
More information about the Rt-commit
mailing list