From aa76c8a26e6a6af1aa2145aece40e5a91a4e2cc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 17 Sep 2015 11:17:55 +0200 Subject: [PATCH] =?utf8?q?Angebote/Auftr=C3=A4ge=20drucken:=20in=20order?= =?utf8?q?=5Fdetails=20=C3=BCbergebene=20form=20verwenden=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … und beim Laden des Order-Objekts prüfen, ob eine id vorhanden ist. --- SL/OE.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/OE.pm b/SL/OE.pm index f776d515a..0c6d6fc9d 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -1518,7 +1518,7 @@ sub order_details { $form->{delivery_term} = SL::DB::Manager::DeliveryTerm->find_by(id => $form->{delivery_term_id} || undef); $form->{delivery_term}->description_long($form->{delivery_term}->translated_attribute('description_long', $form->{language_id})) if $form->{delivery_term} && $form->{language_id}; - $::form->{order} = SL::DB::Manager::Order->find_by(id => $::form->{id}); + $form->{order} = SL::DB::Manager::Order->find_by(id => $form->{id}) if $form->{id}; $main::lxdebug->leave_sub(); } -- 2.20.1