From: Bernd Bleßmann Date: Tue, 20 Jan 2015 10:30:04 +0000 (+0100) Subject: Angebot/Auftrag: Unnötiges Löschen der CVars entfernt. Wird per DB-Trigger erledigt. X-Git-Tag: release-3.2.0beta~68 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=30aa61745051640b657128b3f47da129b9994cfb;p=kivitendo-erp.git Angebot/Auftrag: Unnötiges Löschen der CVars entfernt. Wird per DB-Trigger erledigt. --- diff --git a/SL/OE.pm b/SL/OE.pm index 58792acef..2985e89d0 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -381,12 +381,6 @@ sub save { $form->{$number_field} ||= $trans_number->create_unique; if ($form->{id}) { - $query = qq|DELETE FROM custom_variables - WHERE (config_id IN (SELECT id FROM custom_variable_configs WHERE module = 'IC')) - AND (sub_module = 'orderitems') - AND (trans_id IN (SELECT id FROM orderitems WHERE trans_id = ?))|; - do_query($form, $dbh, $query, $form->{id}); - $query = qq|DELETE FROM shipto | . qq|WHERE trans_id = ? AND module = 'OE'|; do_query($form, $dbh, $query, $form->{id});