[rt-users] Bug in Search/Results.html

Matthew Cheale say_ten at multiplay.co.uk
Tue Oct 26 04:43:27 EDT 2004

Two things I've found:

1) If no query is passed in then the session query is not getting loaded making 
the "Show Results" button fail.

2) The item_map does not get refreshed if the query changes but the orderby and 
order fields remain the same, like if you're navigating using the Quicksearch.

I recovered this functionality with the following changes to the file, copying 
it into the local path first of course.

I've resolved by:
< $session{'tickets'}->FromSQL($Query) if ($Query);
 > if ($Query)
 > {
 >	$session{'tickets'}->FromSQL($Query);
 > 	undef $session{'tickets'}->{'items_array'};
 > }
 > else
 > {
 >	$Query = $session{'tickets'}->Query();
 > }

I hope this is of some use to people.

With regards,

Matthew Cheale

This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137
or return the E.mail to postmaster at multiplay.co.uk.

More information about the rt-users mailing list