From: Moritz Bunkus Date: Wed, 3 Jul 2013 10:22:31 +0000 (+0200) Subject: Commit nach DB-Upgrade auch, wenn AutoCommit aus ist X-Git-Tag: release-3.1.0beta1~215 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=39c3f17ac340bab0f9725ec0dbe7dda9baa3e2c0;p=kivitendo-erp.git Commit nach DB-Upgrade auch, wenn AutoCommit aus ist --- diff --git a/SL/DBUpgrade2.pm b/SL/DBUpgrade2.pm index f6ad6eb18..eba336fe2 100644 --- a/SL/DBUpgrade2.pm +++ b/SL/DBUpgrade2.pm @@ -273,7 +273,7 @@ sub process_perl_script { $dbh->do("UPDATE defaults SET version = " . $dbh->quote($version_or_control)); } - $dbh->commit if $dbh->{AutoCommit} && $dbh->{BegunWork}; + $dbh->commit if !$dbh->{AutoCommit} || $dbh->{BegunWork}; # Clear $::form of values that may have been set so that following # Perl upgrade scripts won't have to work with old data (think of