From 2cb9fa7e5eba68fce15318e41a111b494cfa347e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 31 Jul 2013 11:19:44 +0200 Subject: [PATCH] Nicht explizit Transaktion starten MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit $::form->get_standard_dbh liefert ein Handle, das AutoCommits aus hat $::form->und daher eh immer explizit in einer Transaktion $::form->steckt. Vermeidet zusätzlich eine Warnung. --- SL/IS.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/SL/IS.pm b/SL/IS.pm index 71d547bcd..372e533e3 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1248,7 +1248,6 @@ sub post_payment { # connect to database, turn off autocommit my $dbh = $form->get_standard_dbh; - $dbh->begin_work; my (%payments, $old_form, $row, $item, $query, %keep_vars); @@ -1507,7 +1506,6 @@ sub delete_invoice { # connect to database my $dbh = $form->get_standard_dbh; - $dbh->begin_work; &reverse_invoice($dbh, $form); -- 2.20.1