From f03134bc436d7969247da0986809afc1567ae21b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 29 Jan 2019 11:14:37 +0100 Subject: [PATCH] Order: Auftrag mit Items und Ware laden MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die werden überall gebraucht, also gleich mitladen (cherry picked from commit cb546c6e64e4b3315dcd8b826261939a89baa543) --- SL/Controller/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 91cdebba6..52577bd1b 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1208,7 +1208,7 @@ sub make_order { # be retrieved via items until the order is saved. Adding empty items to new # order here solves this problem. my $order; - $order = SL::DB::Manager::Order->find_by(id => $::form->{id}) if $::form->{id}; + $order = SL::DB::Order->new(id => $::form->{id})->load(with => [ 'orderitems', 'orderitems.part' ]) if $::form->{id}; $order ||= SL::DB::Order->new(orderitems => [], quotation => (any { $self->type eq $_ } (sales_quotation_type(), request_quotation_type()))); -- 2.20.1