I think this is probably what you are looking for.
It was mailed to the list around the 5th of Sept

Greg Evans
Hood Canal Communications
(360) 898-2481 ext.212 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Espen Wiborg
Sent: Friday, September 05, 2008 1:50 AM
To: Jesse Vincent
Cc: [EMAIL PROTECTED]; RT Users
Subject: Re: [rt-users] Quick Search in 3.8.1 doesn't include Resolved
Status

Jesse Vincent <[EMAIL PROTECTED]> writes:
> On Sep 4, 2008, at 8:42 PM, [EMAIL PROTECTED] wrote:
>> We are the same, much prefer searching for all unresolved and
>> resolved tickets in the quick search. The change has caused quite a
>> bit of abuse at the sysadmin (me).
> As I sad before, I'd love to take a patch :)

Something like this, perhaps?

Index: lib/RT/Search/Googleish.pm
===================================================================
--- lib/RT/Search/Googleish.pm	(revision 15777)
+++ lib/RT/Search/Googleish.pm	(working copy)
@@ -162,7 +162,7 @@
     push @tql_clauses, join( " OR ", sort @id_clauses );
     push @tql_clauses, join( " OR ", sort @owner_clauses );
     if ( ! @status_clauses ) {
-        push @tql_clauses, join( " OR ", map "Status = '$_'", RT::Queue->ActiveStatusArray());
+        push @tql_clauses, join( " OR ", map "Status = '$_'", RT::Queue->ActiveStatusArray(), RT->Config->Get('ExtraStatesInSimpleSearch'));
     } else {
         push @tql_clauses, join( " OR ", sort @status_clauses );
     }
Index: etc/RT_Config.pm.in
===================================================================
--- etc/RT_Config.pm.in	(revision 15777)
+++ etc/RT_Config.pm.in	(working copy)
@@ -1117,6 +1117,15 @@
 
 Set($DontSearchFileAttachments, undef);
 
+=item C<$ExtraStatesInSimpleSearch>
+
+Tickets in these states are included in the results of a simple
+search, along with any active tickets.
+
+=cut
+
+Set(@ExtraStatesInSimpleSearch, qw());
+
 =item C<$ChartFont>
 
 The L<GD> module (which RT uses for graphs) uses a builtin font that doesn't
-- 
Espen Wiborg <[EMAIL PROTECTED]> - Veritas vos liberabit
Coincidences are spiritual puns.
                -- G.K. Chesterton
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to