[rt-users] Original Quicksearch file

Max McGrath mmcgrath at carthage.edu
Tue Jun 15 21:45:22 EDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100615/7b5c3f6b/attachment.htm>


More information about the rt-users mailing list