projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ebb8ed
)
Order: Auftrag mit Items und Ware laden
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 29 Jan 2019 10:14:37 +0000
(11:14 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 20 Feb 2019 15:37:25 +0000
(16:37 +0100)
Die werden überall gebraucht, also gleich mitladen
(cherry picked from commit
cb546c6e64e4b3315dcd8b826261939a89baa543
)
SL/Controller/Order.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Order.pm
b/SL/Controller/Order.pm
index
91cdebb
..
52577bd
100644
(file)
--- 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())));