Bug 2889: Removed toggle variable from aqbudget.tmpl. Used template variable __odd__ instead.
Removed toggle variable from aqbudget.pl and aqbudget.tmpl. Used template variable __odd__ instead. Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
f306efb2c0
commit
7f28053a65
2 changed files with 1 additions and 3 deletions
|
@ -402,14 +402,12 @@ SELECT aqbudgetid,
|
|||
scalar @results - 1,
|
||||
);
|
||||
|
||||
my $toggle = 0;
|
||||
my @loop;
|
||||
foreach my $result (@results[$first .. $last]) {
|
||||
push(
|
||||
@loop,
|
||||
{
|
||||
%{$result},
|
||||
toggle => $toggle++%2,
|
||||
bookfundname => $bookfundname_of{ $result->{'bookfundid'} },
|
||||
branchname => $branches->{ $result->{branchcode} }->{branchname},
|
||||
startdate => format_date($result->{startdate}),
|
||||
|
|
|
@ -218,7 +218,7 @@
|
|||
</tr>
|
||||
|
||||
<!-- TMPL_LOOP name="budget" -->
|
||||
<!-- TMPL_IF NAME="toggle" -->
|
||||
<!-- TMPL_UNLESS name="__odd__" -->
|
||||
<tr class="highlight">
|
||||
<!-- TMPL_ELSE -->
|
||||
<tr>
|
||||
|
|
Loading…
Reference in a new issue