[Koha-patches] [PATCH] followup to prior patch: remove $toggle from script

Galen Charlton galen.charlton at liblime.com
Wed Dec 31 17:10:21 CET 2008


---
 admin/systempreferences.pl |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl
index a5cdd8d..b71d8d2 100755
--- a/admin/systempreferences.pl
+++ b/admin/systempreferences.pl
@@ -673,18 +673,11 @@ if ( $op eq 'add_form' ) {
     my $tab = $input->param('tab');
     $template->param( $tab => 1 );
     my ( $count, $results ) = StringSearch( $searchfield, $tab );
-    my $toggle    = 0;
     my @loop_data = ();
     for ( my $i = $offset ; $i < ( $offset + $pagesize < $count ? $offset + $pagesize : $count ) ; $i++ ) {
-        if ( $toggle == 0 ) {
-            $toggle = 1;
-        } else {
-            $toggle = 0;
-        }
         my $row_data = $results->[$i];
         $row_data->{'lang'} = $template->param('lang');
         $row_data           = GetPrefParams($row_data);                                                         # get a fresh hash for the row data
-        $row_data->{toggle} = $toggle;
         $row_data->{edit}   = "$script_name?op=add_form&amp;searchfield=" . $results->[$i]{'variable'};
         $row_data->{delete} = "$script_name?op=delete_confirm&amp;searchfield=" . $results->[$i]{'variable'};
         push( @loop_data, $row_data );
-- 
1.5.5.GIT




More information about the Koha-patches mailing list