+ my $cvar_configs = CVar->get_configs('module' => 'Projects');
+
+ my $report = SL::ReportGenerator->new(\%myconfig, $form);
+
+ my @columns = qw(projectnumber description active);
+
+ my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
+ my %column_defs_cvars = ();
+ foreach (@includeable_custom_variables) {
+ $column_defs_cvars{"cvar_$_->{name}"} = {
+ 'text' => $_->{description},
+ 'visible' => $form->{"l_cvar_$_->{name}"} eq 'Y',
+ };
+ }
+
+ push @columns, map { "cvar_$_->{name}" } @includeable_custom_variables;
+