projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ad92f
)
Schleifenzähler für __first__ fängt bei 0 an, nicht bei 1
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 20 Oct 2010 11:49:39 +0000
(13:49 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 20 Oct 2010 11:51:55 +0000
(13:51 +0200)
SL/Template/LaTeX.pm
patch
|
blob
|
history
diff --git
a/SL/Template/LaTeX.pm
b/SL/Template/LaTeX.pm
index
c515187
..
8aac39d
100644
(file)
--- a/
SL/Template/LaTeX.pm
+++ b/
SL/Template/LaTeX.pm
@@
-55,7
+55,7
@@
sub parse_foreach {
for (my $i = 0; $i < scalar(@{$ary}); $i++) {
# do magic markers
- $form->{"__first__"} = $i ==
1
;
+ $form->{"__first__"} = $i ==
0
;
$form->{"__last__"} = ($i + 1) == scalar(@{$ary});
$form->{"__odd__"} = (($i + 1) % 2) == 1;
$form->{"__counter__"} = $i + 1;