followup to prior patch: remove $toggle from script

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Galen Charlton 2008-12-31 10:10:02 -06:00
parent 5af1eb2061
commit 538ce7b2e3
1 changed files with 0 additions and 7 deletions

View File

@ -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 );