From: Moritz Bunkus Date: Mon, 5 Feb 2007 10:58:21 +0000 (+0000) Subject: Falsche Reihenfolge der Queries beim Löschen von Zahlungskonditionen. X-Git-Tag: release-2.4.2~154 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=deb816a503a07c3d900e2205cef70d9978d8d840;p=kivitendo-erp.git Falsche Reihenfolge der Queries beim Löschen von Zahlungskonditionen. --- diff --git a/SL/AM.pm b/SL/AM.pm index 866cf7ab7..a0a15899c 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -1464,11 +1464,11 @@ sub delete_payment { # connect to database my $dbh = $form->dbconnect_noauto($myconfig); - my $query = qq|DELETE FROM payment_terms WHERE id = ?|; + my $query = + qq|DELETE FROM translation_payment_terms WHERE payment_terms_id = ?|; do_query($form, $dbh, $query, $form->{"id"}); - $query = - qq|DELETE FROM translation_payment_terms WHERE payment_terms_id = ?|; + $query = qq|DELETE FROM payment_terms WHERE id = ?|; do_query($form, $dbh, $query, $form->{"id"}); $dbh->commit();