Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ca5da06d

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

  • ID ca5da06dad2c1e16b148440042157e3628b4599e
  • Vorgänger fe7ce01d
  • Nachfolger 4db2992d

ReportGenerator::generate_with_header kann jetzt auch no_layout

Unterschiede anzeigen:

SL/ReportGenerator.pm
72 72
  foreach my $column (values %{ $self->{columns} }) {
73 73
    $column->{visible} = $self->{options}->{std_column_visibility} unless defined $column->{visible};
74 74
  }
75
  
75

  
76 76
  if( $::form->{report_generator_csv_options_for_import} ) {
77 77
    foreach my $key (keys %{ $self->{columns} }) {
78 78
      $self->{columns}{$key}{text} = $key;
......
220 220
}
221 221

  
222 222
sub generate_with_headers {
223
  my $self   = shift;
223
  my ($self, %params) = @_;
224 224
  my $format = lc $self->{options}->{output_format};
225 225
  my $form   = $self->{form};
226 226

  
......
231 231
  if ($format eq 'html') {
232 232
    my $title      = $form->{title};
233 233
    $form->{title} = $self->{title} if ($self->{title});
234
    $form->header();
234
    $form->header(no_layout => $params{no_layout});
235 235
    $form->{title} = $title;
236 236

  
237 237
    print $self->generate_html_content();
......
410 410
  my $self      = shift;
411 411
  my $variables = $self->prepare_html_content();
412 412

  
413
  return $self->{form}->parse_html_template($self->{options}->{html_template}, $variables);
413
  my $stuff  = $self->{form}->parse_html_template($self->{options}->{html_template}, $variables);
414
  $::lxdebug->dump(0,  "stuff", $stuff);
415
  return $stuff;
414 416
}
415 417

  
416 418
sub _cm2bp {

Auch abrufbar als: Unified diff