Number of custom field in search

Hi, I’ve got a problem with custom field in the search. I need to know the
number of custom in a search to used it in
$RTPATH/local/lib/RT/Tickets_Overlay.pm

So I’ve added a session var in: $RTPATH/local/html/Search/Results.html
at the beginning of the <%init>. Like this:

my $count = 0;
for ($Query =~ m/CF/g ) {
$count++;
}

$session{‘nbCFinSearch’} = $count;

Then I want to know how many CustomField there is in :
$RTPATH/local/lib/RT/Tickets_Overlay.pm

But when i use the session var, it’s always empty or undef …

Is there any other way… idea?

Thanks

Patrick

This, by the way, is related to Todd Chapman’s post called “Custom
Field search bug in 3.4 HEAD”.

SHOn 4/11/05, Patrick Rousseau-Mathieu prouss@cae.com wrote:

Hi, I’ve got a problem with custom field in the search. I need to know the
number of custom in a search to used it in
$RTPATH/local/lib/RT/Tickets_Overlay.pm

So I’ve added a session var in: $RTPATH/local/html/Search/Results.html
at the beginning of the <%init>. Like this:

my $count = 0;
for ($Query =~ m/CF/g ) {
$count++;
}

$session{‘nbCFinSearch’} = $count;

Then I want to know how many CustomField there is in :
$RTPATH/local/lib/RT/Tickets_Overlay.pm

But when i use the session var, it’s always empty or undef …

Is there any other way… idea?

Thanks

Patrick


Rt-devel mailing list
Rt-devel@lists.bestpractical.com
The rt-devel Archives