Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e7088e23

Von Moritz Bunkus vor mehr als 5 Jahren hinzugefügt

  • ID e7088e2389156e0bd0e6741c5c98be2c456a6129
  • Vorgänger 55a74ec9
  • Nachfolger bc89ebf4

Pflichtenhefte: Exportoption bzgl. benutzerdefinierter Variablen in Suchmaske gefixt

Unterschiede anzeigen:

SL/Controller/RequirementSpec.pm
374 374

  
375 375
sub init_include_cvars {
376 376
  my ($self) = @_;
377
  return $::form->{include_cvars} if $::form->{include_cvars} && (ref($::form->{include_cvars}) eq 'HASH');
377
  return { map { ($_->name => $::form->{"include_cvars_" . $_->name}) }       @{ $self->cvar_configs } } if $::form->{_include_cvars_from_form};
378 378
  return { map { ($_->name => ($_->includeable && $_->included_by_default)) } @{ $self->cvar_configs } };
379 379
}
380 380

  
......
516 516
    %column_defs = (%column_defs, %cvar_column_defs);
517 517
  }
518 518

  
519
  my @cvar_column_form_names = ('_include_cvars_from_form', map { "include_cvars_" . $_->name } @{ $self->includeable_cvar_configs });
520

  
519 521
  $report->set_options(
520 522
    std_column_visibility => 1,
521 523
    controller_class      => 'RequirementSpec',
......
528 530
  );
529 531
  $report->set_columns(%column_defs);
530 532
  $report->set_column_order(@columns);
531
  $report->set_export_options(qw(list filter));
533
  $report->set_export_options(qw(list filter), @cvar_column_form_names);
532 534
  $report->set_options_from_form;
533 535
  $self->models->set_report_generator_sort_options(report => $report, sortable_columns => \@sortable);
534 536
}

Auch abrufbar als: Unified diff