Original Quicksearch file

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! :slight_smile:

Here is my config of /opt/rt3/local/html/Quicksearch/Elements/Quicksearch:

<&|/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') }] &>
<%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@carthage.edu

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
LBNLOn Tue, Jun 15, 2010 at 6:45 PM, Max McGrath mmcgrath@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! :slight_smile:

Here is my config of /opt/rt3/local/html/Quicksearch/Elements/Quicksearch:

<&|/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') }] &>
<%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@carthage.edu

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

Thanks Kenn -

I will look into this again. So if I set this:

Set(@ActiveStatus, qw(
new open resolved));

in my RT_SiteConfig.pm I should only see those three in the Quicksearch?
Max McGrath
Asst. Network Admin/Systems Specialist
Carthage College
262-552-5512
mmcgrath@carthage.eduOn Wed, Jun 16, 2010 at 10:34 AM, Kenneth Crocker kfcrocker@lbl.gov wrote:

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@carthage.eduwrote:

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! :slight_smile:

Here is my config of /opt/rt3/local/html/Quicksearch/Elements/Quicksearch:

<&|/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') }] &>
<%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@carthage.edu

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

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

Max,

Yep. That’s what I did. We added two new statuses and that’s all we needed
to do. They showed up automatically in “Quicksearch” and “MySupportQueues”.
Good luck.

Kenn
LBNLOn Wed, Jun 16, 2010 at 8:38 AM, Max McGrath mmcgrath@carthage.edu wrote:

Thanks Kenn -

I will look into this again. So if I set this:

Set(@ActiveStatus, qw(
new open resolved));

in my RT_SiteConfig.pm I should only see those three in the Quicksearch?

Max McGrath
Asst. Network Admin/Systems Specialist
Carthage College
262-552-5512
mmcgrath@carthage.edu

On Wed, Jun 16, 2010 at 10:34 AM, Kenneth Crocker kfcrocker@lbl.govwrote:

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@carthage.eduwrote:

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! :slight_smile:

Here is my config of
/opt/rt3/local/html/Quicksearch/Elements/Quicksearch:

<&|/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') }] &>
<%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@carthage.edu

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

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