From: Bernd Bleßmann Date: Tue, 31 Aug 2021 06:53:41 +0000 (+0200) Subject: Kosmetik: CVars für Lagerbestand: Variablendeklaration näher an Verwendung X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~375 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5ee61c6f50909a5dd120a2b09df081823a49bef9;p=kivitendo-erp.git Kosmetik: CVars für Lagerbestand: Variablendeklaration näher an Verwendung --- diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index b7750f2ca..017e4a249 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -817,8 +817,6 @@ sub generate_report { my %myconfig = %main::myconfig; my $locale = $main::locale; - my $cvar_configs = CVar->get_configs('module' => 'IC'); - $form->{title} = $locale->text("Report about warehouse contents"); $form->{sort} ||= 'partnumber'; my $sort_col = $form->{sort}; @@ -894,6 +892,7 @@ sub generate_report { my $report = SL::ReportGenerator->new(\%myconfig, $form); + my $cvar_configs = CVar->get_configs('module' => 'IC'); my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs }; push @columns, map { "cvar_$_->{name}" } @includeable_custom_variables;