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,
|
scalar(@results) - 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
my $toggle = 0;
|
|
||||||
foreach my $result (@results[$first .. $last]) {
|
foreach my $result (@results[$first .. $last]) {
|
||||||
push(
|
push(
|
||||||
@loop,
|
@loop,
|
||||||
{
|
{
|
||||||
%{$result},
|
%{$result},
|
||||||
toggle => $toggle++%2,
|
|
||||||
branchname =>
|
branchname =>
|
||||||
$branches->{ $result->{branchcode} }->{branchname},
|
$branches->{ $result->{branchcode} }->{branchname},
|
||||||
has_budgets => defined $nb_budgets_of{ $result->{bookfundid} },
|
has_budgets => defined $nb_budgets_of{ $result->{bookfundid} },
|
||||||
|
|
|
@ -108,11 +108,11 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- TMPL_LOOP name="bookfund" -->
|
<!-- TMPL_LOOP name="bookfund" -->
|
||||||
<!-- TMPL_IF NAME="toggle" -->
|
<!-- TMPL_UNLESS NAME="__odd__" -->
|
||||||
<tr class="highlight">
|
<tr class="highlight">
|
||||||
<!-- TMPL_ELSE -->
|
<!-- TMPL_ELSE -->
|
||||||
<tr>
|
<tr>
|
||||||
<!-- /TMPL_IF -->
|
<!-- /TMPL_UNLESS -->
|
||||||
<td>
|
<td>
|
||||||
<!-- TMPL_VAR name="bookfundid" -->
|
<!-- TMPL_VAR name="bookfundid" -->
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue