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:
parent
dcf25a5b44
commit
d5904a0835
2 changed files with 2 additions and 4 deletions
|
@ -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} },
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue