From 48f958fb195a826c56aa1341196b369789b20018 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Mon, 8 Jun 2009 15:45:01 -0400 Subject: [PATCH] Bug 2889: Removed toggle variable from overduerules.tmpl - added __odd__ Removed toggle variable from overduerules.pl and overduerules.tmpl. Used template variable __odd__ instead. Signed-off-by: Galen Charlton --- .../intranet-tmpl/prog/en/modules/tools/overduerules.tmpl | 4 ++-- tools/overduerules.pl | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tmpl index 690642b959..566b246d0a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tmpl @@ -80,11 +80,11 @@ $(document).ready(function() { DelayLetterDebarDelayLetterDebarDelayLetterDebar - + - + " size="5" value="" /> diff --git a/tools/overduerules.pl b/tools/overduerules.pl index e39025013d..c0d6e5058a 100755 --- a/tools/overduerules.pl +++ b/tools/overduerules.pl @@ -182,17 +182,10 @@ my $letters = GetLetters("circulation"); my $countletters = scalar $letters; my @line_loop; -my $toggle = 1; for my $data (@categories) { - if ( $toggle eq 1 ) { - $toggle = 0; - } else { - $toggle = 1; - } my %row = ( overduename => $data->{'categorycode'}, - toggle => $toggle, line => $data->{'description'} ); if (%temphash and not $input_saved){ -- 2.39.5