From a66cafd980c44371fd29b0383f665125d85b1cc7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 10 Aug 2018 14:50:22 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20kein=20run=5Fbefore=20f?= =?utf8?q?=C3=BCr=20create=5Fpdf.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Es gibt schon länger keine action_create_pdf mehr. Auch den Namen des session-keys umbenannt. --- SL/Controller/Order.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 9ba587e05..6c6b8b6ef 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -42,10 +42,10 @@ use Rose::Object::MakeMethods::Generic __PACKAGE__->run_before('check_auth'); __PACKAGE__->run_before('recalc', - only => [ qw(save save_as_new save_and_delivery_order save_and_invoice print create_pdf send_email) ]); + only => [ qw(save save_as_new save_and_delivery_order save_and_invoice print send_email) ]); __PACKAGE__->run_before('get_unalterable_data', - only => [ qw(save save_as_new save_and_delivery_order save_and_invoice print create_pdf send_email) ]); + only => [ qw(save save_as_new save_and_delivery_order save_and_invoice print send_email) ]); # # actions @@ -236,7 +236,7 @@ sub action_print { $sfile->fh->close; my $key = join('_', Time::HiRes::gettimeofday(), int rand 1000000000000); - $::auth->set_session_value("Order::create_pdf-${key}" => $sfile->file_name); + $::auth->set_session_value("Order::print-${key}" => $sfile->file_name); $self->js ->run('kivi.Order.download_pdf', $pdf_filename, $key) @@ -294,7 +294,7 @@ sub action_download_pdf { my ($self) = @_; my $key = $::form->{key}; - my $tmp_filename = $::auth->get_session_value("Order::create_pdf-${key}"); + my $tmp_filename = $::auth->get_session_value("Order::print-${key}"); return $self->send_file( $tmp_filename, type => 'application/pdf', -- 2.20.1