projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc9fbc1
)
Nicht explizit Transaktion starten
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 31 Jul 2013 09:19:44 +0000
(11:19 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 31 Jul 2013 09:20:47 +0000
(11:20 +0200)
$::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
patch
|
blob
|
history
diff --git
a/SL/IS.pm
b/SL/IS.pm
index
71d547b
..
372e533
100644
(file)
--- 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);