From: Moritz Bunkus Date: Tue, 12 Dec 2006 14:31:34 +0000 (+0000) Subject: $myconfig ist in $self gespeichert. Fix für Bugzilla #439. X-Git-Tag: release-2.4.0^2~67 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=02129bcf32219a444fe2e1d31c3e58b939359600;p=kivitendo-erp.git $myconfig ist in $self gespeichert. Fix für Bugzilla #439. --- diff --git a/SL/Template.pm b/SL/Template.pm index d30b92886..b4c6bf509 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -196,7 +196,7 @@ sub parse_foreach { # replace the special variables <%sumcarriedforward%> # and <%lastpage%> - my $psum = $form->format_amount($myconfig, $sum, 2); + my $psum = $form->format_amount($self->{"myconfig"}, $sum, 2); $pb =~ s/<%sumcarriedforward%>/$psum/g; $pb =~ s/<%lastpage%>/$current_page/g; @@ -210,7 +210,8 @@ sub parse_foreach { $current_line += $lines; } if ($i < scalar(@{$form->{"linetotal"}})) { - $sum += $form->parse_amount($myconfig, $form->{"linetotal"}->[$i]); + $sum += $form->parse_amount($self->{"myconfig"}, + $form->{"linetotal"}->[$i]); } my $new_text = $self->parse_block($text, (@indices, $i));