From 5c2579357bcd8331e5df3b71be0ab43a079ffcbe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 27 Jul 2016 15:00:24 +0200 Subject: [PATCH] =?utf8?q?Auftrag=20in=20Lieferschein=20wandeln:=20Rose-DB?= =?utf8?q?-Handle=20f=C3=BCr=20Item-Verkn=C3=BCpfungen=20verwenden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sonst wirkt die transaction nicht und es kann sein, dass record_links angelegt werden, auch wenn die Transaktion abgebrochen wird. --- SL/DB/Order.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index 097d471f3..cc4f0a3f8 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -168,7 +168,8 @@ sub convert_to_delivery_order { foreach (qw(orderitems)) { # expand if needed (delivery_order_items) if ($item->{"converted_from_${_}_id"}) { die unless $item->{id}; - RecordLinks->create_links('mode' => 'ids', + RecordLinks->create_links('dbh' => $self->db->dbh, + 'mode' => 'ids', 'from_table' => $_, 'from_ids' => $item->{"converted_from_${_}_id"}, 'to_table' => 'delivery_order_items', -- 2.20.1