[rt-users] Resolved tickets displayed when "Next-ing" through Open/New ticket search results (fwd)
J. Sloan
js138 at eng.cam.ac.uk
Tue Oct 14 09:13:25 EDT 2003
Further data points on this.
It seems that no matter how I get to a ticket which appears to be in the
item map, I get the same item map displayed. Indeed it would appear that
the item map remains cached for the whole of that user session. Deleting
the relevant authentication cookie and forcing a reauthentication (we're
using external authentication FWIW) and doing a new search resets the item
map to the results of that first search and from there nothing will shift
it.
[...]
Well what do you know - I think I've fixed it. An extra line in
_ProcessRestrictions seems to cure it.
diff -c Tickets_Overlay.pm.orig Tickets_Overlay.pm
*** Tickets_Overlay.pm.orig 2003-10-10 15:24:43.000000000 +0100
--- Tickets_Overlay.pm 2003-10-14 14:09:50.000000000 +0100
***************
*** 1994,2000 ****
#Blow away ticket aliases since we'll need to regenerate them for
#a new search
delete $self->{'TicketAliases'};
! delete $self->{'items_array'};
my $sql = $self->{_sql_query}; # Violating the _SQL namespace
if (!$sql||$self->{'RecalcTicketLimits'}) {
# "Restrictions to Clauses Branch\n";
--- 1994,2002 ----
#Blow away ticket aliases since we'll need to regenerate them for
#a new search
delete $self->{'TicketAliases'};
! delete $self->{'items_array'};
! delete $self->{'item_map'};
!
my $sql = $self->{_sql_query}; # Violating the _SQL namespace
if (!$sql||$self->{'RecalcTicketLimits'}) {
# "Restrictions to Clauses Branch\n";
[this diff from rt-3.0.6]
At a guess the Tickets object is only being instantiated once per user and
being reused repeatedly?
John
More information about the rt-users
mailing list