Bug 2889: Removed toggle variable from aqbookfund.pl and aqbookfund.tmpl.

Removed toggle variable from aqbookfund.pl and aqbookfund.tmpl. Used template __odd__ variable in aqbookfund.tmpl.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Garry Collum 2009-06-09 18:35:24 -04:00 committed by Galen Charlton
parent dcf25a5b44
commit d5904a0835
2 changed files with 2 additions and 4 deletions

View file

@ -268,13 +268,11 @@ else { # DEFAULT
scalar(@results) - 1,
);
my $toggle = 0;
foreach my $result (@results[$first .. $last]) {
push(
@loop,
{
%{$result},
toggle => $toggle++%2,
branchname =>
$branches->{ $result->{branchcode} }->{branchname},
has_budgets => defined $nb_budgets_of{ $result->{bookfundid} },

View file

@ -108,11 +108,11 @@
</tr>
<!-- TMPL_LOOP name="bookfund" -->
<!-- TMPL_IF NAME="toggle" -->
<!-- TMPL_UNLESS NAME="__odd__" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<!-- /TMPL_UNLESS -->
<td>
<!-- TMPL_VAR name="bookfundid" -->
</td>