followup to prior patch: remove $toggle from script
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
5af1eb2061
commit
538ce7b2e3
|
|
@ -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&searchfield=" . $results->[$i]{'variable'};
|
||||
$row_data->{delete} = "$script_name?op=delete_confirm&searchfield=" . $results->[$i]{'variable'};
|
||||
push( @loop_data, $row_data );
|
||||
|
|
|
|||
Loading…
Reference in New Issue