<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [rt-users] Quick Search in 3.8.1 doesn't include Resolved Status</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Jesse Vincent <jesse@bestpractical.com> writes:<BR>
>On Fri, Sep 05, 2008 at 10:49:35AM +0200, Espen Wiborg wrote:<BR>
>> Jesse Vincent <jesse@bestpractical.com> writes:<BR>
>>> As I sad before, I'd love to take a patch :)<BR>
>><BR>
>> Something like this, perhaps?<BR>
>Given the sorts of customizability people want, it might make sense to<BR>
>let the admin specify "SimpleSearchStatuses" (so that someone could,<BR>
>say, force it to "only resolved").<BR>
><BR>
>You're actually only a couple lines away from making this a user<BR>
>preference.<BR>
><BR>
>If you look at lib/RT/Config.pm, you can see the data structire you need<BR>
>to fill in.<BR>
><BR>
>To get your RT->Config->Get invocation to notice user preferences, you<BR>
>just need to pass in the currentuser object as an extra argument.<BR>
<BR>
Right, the attached version of the patch makes SimpleSearchStatuses an absolute<BR>
configurable, overridable by user preference.<BR>
<BR>
For best results, you'll need the patch in <A HREF="http://rt3.fsck.com/Ticket/Display.html?id=12447">http://rt3.fsck.com/Ticket/Display.html?id=12447</A><BR>
as well.<BR>
<BR>
One thing, though:  With this, I get "Use of uninitialized value in join or string<BR>
at /usr/local/opt/rt3/share/html/Widgets/Form/Select line 74." in the Apache error log.  It<BR>
seems to be something to do with DefaultValue, but I can't figure out how to make it go<BR>
away...<BR>
<BR>
--<BR>
Espen Wiborg <espen.wiborg@telio.no><BR>
Veritas vos liberabit<BR>
</FONT>
</P>

</BODY>
</HTML>