Bei Locking dasselbe DB-Handle verwenden
authorBernd Blessmann <bibi@online.de>
Sat, 6 Aug 2011 12:08:38 +0000 (14:08 +0200)
committerBernd Blessmann <bibi@online.de>
Sat, 6 Aug 2011 12:08:38 +0000 (14:08 +0200)
Dasselbe Porblem wie beim commit
af281b3c71e26f85e07e44f5fe1b8b52bceb4b4e

SL/CT.pm

index b169482..467fb08 100644 (file)
--- 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;