Revision deb816a5
Von Moritz Bunkus vor fast 18 Jahren hinzugefügt
SL/AM.pm | ||
---|---|---|
1464 | 1464 |
# connect to database |
1465 | 1465 |
my $dbh = $form->dbconnect_noauto($myconfig); |
1466 | 1466 |
|
1467 |
my $query = qq|DELETE FROM payment_terms WHERE id = ?|; |
|
1467 |
my $query = |
|
1468 |
qq|DELETE FROM translation_payment_terms WHERE payment_terms_id = ?|; |
|
1468 | 1469 |
do_query($form, $dbh, $query, $form->{"id"}); |
1469 | 1470 |
|
1470 |
$query = |
|
1471 |
qq|DELETE FROM translation_payment_terms WHERE payment_terms_id = ?|; |
|
1471 |
$query = qq|DELETE FROM payment_terms WHERE id = ?|; |
|
1472 | 1472 |
do_query($form, $dbh, $query, $form->{"id"}); |
1473 | 1473 |
|
1474 | 1474 |
$dbh->commit(); |
Auch abrufbar als: Unified diff
Falsche Reihenfolge der Queries beim Löschen von Zahlungskonditionen.