From cc6ef1b946d0d9f7333225d7ed0a6f1aeb60c374 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 22 Jan 2015 15:51:29 +0100 Subject: [PATCH] =?utf8?q?=20Angebots-Position=20mit=20Auftragsposition=20?= =?utf8?q?verkn=C3=BCpft=20(orderitems=20->=20orderitems)=20II?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - mehrfach speichern (converted* wird nicht gelöscht) i.O. --- SL/OE.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/OE.pm b/SL/OE.pm index 9d6f84962..d8c66f5ef 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -578,7 +578,7 @@ SQL name_prefix => 'ic_', name_postfix => "_$i", dbh => $dbh); - # link quotation items with order items + # link quotation items with order items and delete entry (just one link) if ($form->{"converted_from_quotation_orderitems_id_$i"}) { RecordLinks->create_links('dbh' => $dbh, 'mode' => 'ids', @@ -587,6 +587,7 @@ SQL 'to_table' => 'orderitems', 'to_id' => $orderitems_id, ); + delete $form->{"converted_from_quotation_orderitems_id_$i"}; } } } -- 2.20.1