[Rt-devel] Number of custom field in search

Patrick Rousseau-Mathieu prouss at cae.com
Mon Apr 11 13:41:42 EDT 2005


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



More information about the Rt-devel mailing list