[rt-users] Original Quicksearch file

Kenneth Crocker kfcrocker at lbl.gov
Wed Jun 16 11:34:04 EDT 2010


Max,

I may be wrong, but I thought that with 3.8+ all you had to do for
Quicksearh staus values was setin the Active staus in RT_SiteConfig.pm,
which you did. I didn't think anything else needed to be done.

Kenn
LBNL

On Tue, Jun 15, 2010 at 6:45 PM, Max McGrath <mmcgrath at carthage.edu> wrote:

> Hi all -
>
> Running RT 3.8.8 on Ubuntu 9.10.
>
> I was attempting to get the *resolved *status to show up in the
> Quicksearch box on the home page -- I had this working in 3.8.7 but it
> reverted back to the default way with the upgrade to 3.8.8.
>
> I, however, seemed to have screwed it up majorly and I now get the
> following on my home page:
>
> Error during compilation of /opt/rt3/local/html/Elements/Quicksearch:
> syntax error at /opt/rt3/local/html/Elements/Quicksearch line 54, near "[."
> syntax error at /opt/rt3/local/html/Elements/Quicksearch line 58, near "}]"
> syntax error at /opt/rt3/local/html/Elements/Quicksearch line 60, near "} }"
> syntax error at /opt/rt3/local/html/Elements/Quicksearch line 64, near "}"
>
> So, if someone could either help me get my Quicksearch working with the
> resolved status or without the resolved status that'd be great!  I just want
> it working again! :)
>
> Here is my config of /opt/rt3/local/html/Quicksearch/Elements/Quicksearch:
>
>
> <div class="ticket-overview">
> <&|/Widgets/TitleBox, title => loc("Quick search"), bodyclass => "",
>    titleright => loc("Edit"), titleright_href =>
> RT->Config->Get('WebPath').'/Prefs/Quicksearch.html' &>
> <& /Elements/QueueSummary,
>    cache => 'quick_search_queues',
>    queue_filter => sub { $_->CurrentUserHasRight('ShowTicket') && !exists
> $unwanted->{$_->Name} },
> conditions => [. {cond => "Status = 'new'", name => loc ('new') },
> {cond => "Status = 'open'", name => loc
> ('open') },
> {cond => "Status = 'resolved'", name => loc
> ('resolved') }]
> &>
> </&>
> </div>
> <%INIT>
> my $unwanted = $session{'CurrentUser'}->UserObj->Preferences('QuickSearch',
> {});
>
> my @conditions = ();
> foreach ( RT::Queue->ActiveStatusArray ) {
>     push @conditions, { cond => "Status = '$_'", name => loc($_) };
> }
>
> I have also put the following in my RT_SiteConfig.pm:
>
> Set(@ActiveStatus, qw(
>         new open resolved));
>
> Am I missing something?  Thanks!
>
> Max
> --
> Max McGrath
> Asst. Network Admin/Systems Specialist
> Carthage College
> 262-552-5512
> mmcgrath at carthage.edu
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100616/8402bb66/attachment.htm>


More information about the rt-users mailing list