From 2193f03f09faad23bb96f9bd706718fa882b0f98 Mon Sep 17 00:00:00 2001 From: Bernd Blessmann Date: Mon, 23 Jan 2012 15:24:02 +0100 Subject: [PATCH] format_amount zum Formatieren verwenden, satt parse_amount. Sonst sind die numerischen CVars beim Drucken nicht richtig formatiert. --- SL/CVar.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/CVar.pm b/SL/CVar.pm index 49e378666..6d04f35a9 100644 --- a/SL/CVar.pm +++ b/SL/CVar.pm @@ -721,7 +721,7 @@ sub format_to_template { # stupid template expects everything formated. except objects # do not use outside of print routines for legacy templates - return $::form->parse_amount(\%::myconfig, $value) if $config->{type} eq 'number'; + return $::form->format_amount(\%::myconfig, $value) if $config->{type} eq 'number'; return $value->to_lxoffice if $config->{type} eq 'date' && blessed $value && $value->can('to_lxoffice'); return $value; } -- 2.20.1