From: Jan Büren Date: Thu, 22 Jan 2015 14:51:29 +0000 (+0100) Subject: Angebots-Position mit Auftragsposition verknüpft (orderitems -> orderitems) II X-Git-Tag: release-3.2.0beta~50 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cc6ef1b946d0d9f7333225d7ed0a6f1aeb60c374;p=kivitendo-erp.git Angebots-Position mit Auftragsposition verknüpft (orderitems -> orderitems) II - mehrfach speichern (converted* wird nicht gelöscht) i.O. --- 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"}; } } }