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

Jesse Vincent jesse at bestpractical.com
Tue Oct 26 16:01:28 EDT 2004


	What version of RT are you using? It's worth trying the latest RT 3.2 
from subversion, as we have a much more comprehensive fix for this 
issue.
Generally, if you have to be going into the datastructure inside an RT 
object, something is wrong with the abstraction.


On Oct 26, 2004, at 4:43 AM, Matthew Cheale wrote:

> 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.
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT wiki at http://wiki.bestpractical.com
>




More information about the rt-users mailing list