[Koha-patches] [PATCH] Bug 2889: Removed toggle variable from aqbudget.tmpl. Used template variable __odd__ instead.
Garry Collum
gcollum at gmail.com
Mon Jun 8 21:52:37 CEST 2009
Removed toggle variable from aqbudget.pl and aqbudget.tmpl. Used template variable __odd__ instead.
---
admin/aqbudget.pl | 2 --
.../prog/en/modules/admin/aqbudget.tmpl | 2 +-
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/admin/aqbudget.pl b/admin/aqbudget.pl
index fccedae..fb4d168 100755
--- a/admin/aqbudget.pl
+++ b/admin/aqbudget.pl
@@ -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}),
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudget.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudget.tmpl
index b4b02be..3a19fee 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudget.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudget.tmpl
@@ -218,7 +218,7 @@
</tr>
<!-- TMPL_LOOP name="budget" -->
- <!-- TMPL_IF NAME="toggle" -->
+ <!-- TMPL_UNLESS name="__odd__" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
--
1.5.6.5
More information about the Koha-patches
mailing list