Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision dae2afe8

Von Thomas Heck vor etwa 12 Jahren hinzugefügt

  • ID dae2afe84c22b0043ea49fba5bc568675c6957c6
  • Vorgänger 4fa7102b
  • Nachfolger 133c31d7

CVars beim Projekt-CSV-Export mit exportieren.

fixt #1978

Unterschiede anzeigen:

bin/mozilla/projects.pl
119 119
  my $report       = SL::ReportGenerator->new(\%myconfig, $form);
120 120

  
121 121
  my @columns      = qw(projectnumber description active);
122
  my @hidden_vars  = ('filter');
123
  my $href         = build_std_url('action=project_report', @hidden_vars);
124 122

  
125 123
  my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
126 124
  my %column_defs_cvars            = ();
......
133 131

  
134 132
  push @columns, map { "cvar_$_->{name}" } @includeable_custom_variables;
135 133

  
134

  
135
  my @hidden_vars  = ('filter', map { ('cvar_'. $_->{name} , 'l_cvar_'. $_->{name}) } @includeable_custom_variables);
136
  my $href         = build_std_url('action=project_report', @hidden_vars);
137

  
138

  
136 139
  my %column_defs  = (
137 140
    'projectnumber'            => { 'text' => $locale->text('Number'), },
138 141
    'description'              => { 'text' => $locale->text('Description'), },
......
150 153

  
151 154
  $report->set_export_options('project_report', @hidden_vars, 'sort');
152 155

  
156
  CVar->add_custom_variables_to_report('module'         => 'Project',
157
                                       'trans_id_field' => 'id',
158
                                       'configs'        => $cvar_configs,
159
                                       'column_defs'    => \%column_defs,
160
                                       'data'           => $form->{project_list},
161
                                       );
162

  
153 163
  $report->set_sort_indicator($form->{sort}, 1);
154 164

  
155 165
  my @options;

Auch abrufbar als: Unified diff