From: Bernd Bleßmann Date: Thu, 17 Sep 2015 09:17:55 +0000 (+0200) Subject: Angebote/Aufträge drucken: in order_details übergebene form verwenden … X-Git-Tag: release-3.4.1~736 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=aa76c8a26e6a6af1aa2145aece40e5a91a4e2cc8;p=kivitendo-erp.git Angebote/Aufträge drucken: in order_details übergebene form verwenden … … und beim Laden des Order-Objekts prüfen, ob eine id vorhanden ist. --- 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(); }