[Rt-commit] [svn] r1833 - in rt/branches/PLATANO-EXPERIMENTAL-CSS:
. html/Search
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Thu Nov 11 03:32:11 EST 2004
Author: jesse
Date: Thu Nov 11 03:32:11 2004
New Revision: 1833
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Search/Results.html
Log:
r9095 at tinbook: jesse | 2004-11-11T03:00:02.589971Z
r6117 at tinbook: jesse | 2004-10-27T07:55:31.185793Z
r1994 at tinbook: jesse | 2004-10-12T23:37:37.775608Z
Improved "stickiness" of queries.
Next/Prev navigation should be more consistently available now.
Most recent query should be available more consistently.
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Search/Results.html
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Search/Results.html (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Search/Results.html Thu Nov 11 03:32:11 2004
@@ -88,17 +88,19 @@
<%INIT>
my ($title, $ticketcount);
$session{'i'}++;
-$session{'tickets'} = RT::Tickets->new($session{'CurrentUser'}) unless ($session{'tickets'});
+$session{'tickets'} = RT::Tickets->new($session{'CurrentUser'}) ;
$session{'tickets'}->FromSQL($Query) if ($Query);
$session{'tickets'}->OrderBy(FIELD => $OrderBy, ORDER => $Order);
-if ($OrderBy ne $session{'CurrentSearchHash'}->{'OrderBy'}
- or $Order ne $session{'CurrentSearchHash'}->{'Order'}) {
- $session{'CurrentSearchHash'}->{'OrderBy'} = $OrderBy;
- $session{'CurrentSearchHash'}->{'Order'} = $Order;
- # Invalidate the ordering cache
- undef $session{'tickets'}->{'items_array'};
-}
+
+$session{'CurrentSearchHash'} = {
+ Format => $Format,
+ Query => $Query,
+ Order => $Order,
+ OrderBy => $OrderBy,
+ RowsPerPage => $Rows
+ } unless ($session{'CurrentSearchHash'} && $session{'CurrentSearchHash'}->{Query} eq $Query);
+
if ( $session{'tickets'}->Query()) {
More information about the Rt-commit
mailing list