From: Sven Schöling Date: Tue, 6 Oct 2009 09:24:26 +0000 (+0200) Subject: CVar: sub_module muss vorher konvertiert werden. X-Git-Tag: release-2.6.1beta1~248 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a35a796b017f7ca94f7c881d1b96e0c3cdccd96e;p=kivitendo-erp.git CVar: sub_module muss vorher konvertiert werden. --- diff --git a/SL/CVar.pm b/SL/CVar.pm index a55cdf439..77d34e67a 100644 --- a/SL/CVar.pm +++ b/SL/CVar.pm @@ -530,7 +530,8 @@ sub add_custom_variables_to_report { # allow sub_module to be a coderef or a fixed value if (ref $params{sub_module} ne 'CODE') { - $params{sub_module} = sub { "$params{sub_module}" }; + my $sub_module = "$params{sub_module}"; + $params{sub_module} = sub { $sub_module }; } my %cfg_map = map { $_->{id} => $_ } @{ $configs };