From d639b4fce190514f773d255af4f89514a95515b2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 3 Feb 2011 11:44:19 +0100 Subject: [PATCH] =?utf8?q?Nur=20dann=20Transaktion=20starten,=20wenn=20noc?= =?utf8?q?h=20keine=20l=C3=A4uft?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/TransNumber.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/TransNumber.pm b/SL/TransNumber.pm index 0ba13a8ab..c9d7be6d1 100644 --- a/SL/TransNumber.pm +++ b/SL/TransNumber.pm @@ -105,7 +105,7 @@ sub create_unique { my $form = $main::form; my %filters = $self->_get_filters(); - $self->dbh->begin_work; + $self->dbh->begin_work if $self->dbh->{AutoCommit}; do_query($form, $self->dbh, qq|LOCK TABLE defaults|); do_query($form, $self->dbh, qq|LOCK TABLE business|) if $self->business_id; -- 2.20.1