From c09bdabaf479f6fe2e8872b4bcb74e65c23d40b2 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Mon, 8 Jun 2009 17:36:25 -0400 Subject: [PATCH] Bug 2889: Removed toggle variable from currency.tmpl. Used template __odd__ instead. Removed toggle variable from currency.tmpl and currency.pl. Used template __odd_ variable instead. Signed-off-by: Galen Charlton --- admin/currency.pl | 2 -- .../intranet-tmpl/prog/en/modules/admin/currency.tmpl | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/admin/currency.pl b/admin/currency.pl index 145dc3f42b..0a237bc908 100755 --- a/admin/currency.pl +++ b/admin/currency.pl @@ -165,7 +165,6 @@ if ($op eq 'add_form') { my ($count,$results)=StringSearch($searchfield,'web'); my @loop; - my $toggle = 0; for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){ my %row = ( currency => $results->[$i]{'currency'}, @@ -173,7 +172,6 @@ if ($op eq 'add_form') { symbol => $results->[$i]{'symbol'}, timestamp => format_date($results->[$i]{'timestamp'}), ); - ($i % 2) and $row{toggle} = 1; push @loop, \%row; } $template->param(loop => \@loop); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl index bfe3623e9a..4dfdd04b8d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl @@ -204,12 +204,12 @@   - - + + - - - + + + -- 2.39.5