From: Bernd Blessmann Date: Sat, 6 Aug 2011 12:08:38 +0000 (+0200) Subject: Bei Locking dasselbe DB-Handle verwenden X-Git-Tag: release-2.7.0beta1~336 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=727b43992716020db258853cdde577a81dfc6391;p=kivitendo-erp.git Bei Locking dasselbe DB-Handle verwenden Dasselbe Porblem wie beim commit af281b3c71e26f85e07e44f5fe1b8b52bceb4b4e --- 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;