From: Moritz Bunkus Date: Tue, 2 Jun 2009 07:26:08 +0000 (+0000) Subject: Kosmetik. X-Git-Tag: release-2.6.0~9 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=59e9212845300cc6f63fd30427d27342994764d6;p=kivitendo-erp.git Kosmetik. --- diff --git a/SL/Template.pm b/SL/Template.pm index 40169339c..3c34ce74f 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -169,16 +169,16 @@ sub parse_foreach { my $ary = $self->_get_loop_variable($var, 1, @indices); - my $sum = 0; - my $current_page = 1; + my $sum = 0; + my $current_page = 1; my ($current_line, $corrent_row) = (0, 1); - my $description_array = $self->_get_loop_variable("description",1); - my $longdescription_array = $self->_get_loop_variable("longdescription",1); + my $description_array = $self->_get_loop_variable("description", 1); + my $longdescription_array = $self->_get_loop_variable("longdescription", 1); for (my $i = 0; $i < scalar(@{$ary}); $i++) { - $form->{"__first__"} = $i == 0; - $form->{"__last__"} = ($i + 1) == scalar(@{$ary}); - $form->{"__odd__"} = (($i + 1) % 2) == 1; + $form->{"__first__"} = $i == 1; + $form->{"__last__"} = ($i + 1) == scalar(@{$ary}); + $form->{"__odd__"} = (($i + 1) % 2) == 1; $form->{"__counter__"} = $i + 1; if (scalar @{$description_array} == scalar @{$ary} && $self->{"chars_per_line"} != 0) {