Help with Ticket Count

Hello, I am trying to create a view similar to the QuickSearch view.

3.6.3, Oracle 10g, apache on RHEL.

I have the view working great, the links when I click them show the
correct tickets, etc.

However, the Tickets->Count is only returning for the first query. I
have updated the view to include an “x” so that I could test the links.

Does anyone know why my Tickets->Count would not be returning as
expected?

% for my $condition (@$conditions) { % } % my $i; % for my $sevlevel (@sevlevels) { % $i++; % my $sevlevel_cond = " 'CF.{Severity Level}' = '$sevlevel' AND "; % my $all_q = $sevlevel_cond . " ( Status = 'open' OR Status = 'new' OR Status = 'stalled' ) AND "; % for my $condition (@$conditions) { % $Tickets->FromSQL($all_q.$condition->{cond}), % } % }
<&|/l&>Severity Level <% $condition->{name} %>
<% substr($sevlevel,0, 5)%> <% $Tickets->Count %> x

Jeff Stark, Sr Systems Administrator
SumTotal Systems, Inc. (Nasdaq; SUMT)

OFFICE +1 919 326 7548
MOBILE +1 919 622 0418

EMAIL jstark@sumtotalsystems.com

The contents of this communication are considered SumTotal Confidential,
and should not be shared with anyone outside of SumTotal, either
electronically or verbally, without the express permission of the
author(s).