[Rt-devel] Number of custom field in search

Scott Hebert scoheb at gmail.com
Mon Apr 11 16:13:07 EDT 2005


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

SH

On 4/11/05, Patrick Rousseau-Mathieu <prouss at 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 at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>


More information about the Rt-devel mailing list