From 2db7c0fa14c14e8203cd7e50262816ae2abf22cd 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 Signed-off-by: Henri-Damien LAURENT --- 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.20.1