From 727b43992716020db258853cdde577a81dfc6391 Mon Sep 17 00:00:00 2001 From: Bernd Blessmann Date: Sat, 6 Aug 2011 14:08:38 +0200 Subject: [PATCH] Bei Locking dasselbe DB-Handle verwenden Dasselbe Porblem wie beim commit af281b3c71e26f85e07e44f5fe1b8b52bceb4b4e --- SL/CT.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/CT.pm b/SL/CT.pm index b16948232..467fb0841 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -457,7 +457,7 @@ sub save_vendor { $form->{taxzone_id} *= 1; # connect to database - my $dbh = $form->dbconnect_noauto($myconfig); + my $dbh = $form->get_standard_dbh; map( { $form->{"cp_${_}"} = $form->{"selected_cp_${_}"} @@ -652,7 +652,6 @@ sub save_vendor { 'always_valid' => 1); my $rc = $dbh->commit(); - $dbh->disconnect(); $main::lxdebug->leave_sub(); return $rc; -- 2.20.1