From 7f4a8f90b02ca4d166f21e0e6348ec9099979e00 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Wed, 10 Jun 2009 19:59:01 -0400 Subject: [PATCH] Bug 2889: Removed toggle variable from stopwords.pl and .tmpl. Removed toggle variable from stopwords.pl and stopwords.tmpl. Used template __odd_ variable instead. Signed-off-by: Galen Charlton --- admin/stopwords.pl | 5 +---- .../intranet-tmpl/prog/en/modules/admin/stopwords.tmpl | 6 +++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/admin/stopwords.pl b/admin/stopwords.pl index c16a50c698..d753085116 100755 --- a/admin/stopwords.pl +++ b/admin/stopwords.pl @@ -136,12 +136,9 @@ if ($op eq 'add_form') { my $env; my ($count,$results)=StringSearch($env,$searchfield,'web'); my @loop; - my $toggle = 0; for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){ - my %row = (word => $results->[$i]{'word'}, - toggle => $toggle); + my %row = (word => $results->[$i]{'word'}); push @loop, \%row; - $toggle = ($toggle eq 0) ? 1 : 0 ; } $template->param(loop => \@loop); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl index 7fb574c7ff..5c0f821d02 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/stopwords.tmpl @@ -149,7 +149,11 @@ - + + + + + ?op=delete_confirm&searchfield=">Delete -- 2.39.5