[Koha-patches] [PATCH] Bug 2889: Removed toggle variable from aqbookfund.pl and aqbookfund.tmpl.
Garry Collum
gcollum at gmail.com
Wed Jun 10 00:35:24 CEST 2009
Removed toggle variable from aqbookfund.pl and aqbookfund.tmpl. Used template __odd__ variable in aqbookfund.tmpl.
---
admin/aqbookfund.pl | 2 --
.../prog/en/modules/admin/aqbookfund.tmpl | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/admin/aqbookfund.pl b/admin/aqbookfund.pl
index d5673c8..952e068 100755
--- a/admin/aqbookfund.pl
+++ b/admin/aqbookfund.pl
@@ -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} },
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbookfund.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbookfund.tmpl
index 9581f71..3403c69 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbookfund.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbookfund.tmpl
@@ -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>
--
1.5.6.5
More information about the Koha-patches
mailing list