Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a66cafd9

Von Bernd Bleßmann vor mehr als 6 Jahren hinzugefügt

  • ID a66cafd980c44371fd29b0383f665125d85b1cc7
  • Vorgänger 1d242038
  • Nachfolger bba88a1b

Auftrags-Controller: kein run_before für create_pdf.

Es gibt schon länger keine action_create_pdf mehr.
Auch den Namen des session-keys umbenannt.

Unterschiede anzeigen:

SL/Controller/Order.pm
42 42
__PACKAGE__->run_before('check_auth');
43 43

  
44 44
__PACKAGE__->run_before('recalc',
45
                        only => [ qw(save save_as_new save_and_delivery_order save_and_invoice print create_pdf send_email) ]);
45
                        only => [ qw(save save_as_new save_and_delivery_order save_and_invoice print send_email) ]);
46 46

  
47 47
__PACKAGE__->run_before('get_unalterable_data',
48
                        only => [ qw(save save_as_new save_and_delivery_order save_and_invoice print create_pdf send_email) ]);
48
                        only => [ qw(save save_as_new save_and_delivery_order save_and_invoice print send_email) ]);
49 49

  
50 50
#
51 51
# actions
......
236 236
    $sfile->fh->close;
237 237

  
238 238
    my $key = join('_', Time::HiRes::gettimeofday(), int rand 1000000000000);
239
    $::auth->set_session_value("Order::create_pdf-${key}" => $sfile->file_name);
239
    $::auth->set_session_value("Order::print-${key}" => $sfile->file_name);
240 240

  
241 241
    $self->js
242 242
    ->run('kivi.Order.download_pdf', $pdf_filename, $key)
......
294 294
  my ($self) = @_;
295 295

  
296 296
  my $key = $::form->{key};
297
  my $tmp_filename = $::auth->get_session_value("Order::create_pdf-${key}");
297
  my $tmp_filename = $::auth->get_session_value("Order::print-${key}");
298 298
  return $self->send_file(
299 299
    $tmp_filename,
300 300
    type => 'application/pdf',

Auch abrufbar als: Unified diff