]> wagnertech.de Git - mfinanz.git/blobdiff - SL/IC.pm
Bei Locking dasselbe DB-Handle verwenden
[mfinanz.git] / SL / IC.pm
index 31993641c33cf73db123ef7ca81f82dd7ca973c8..ee92278113ad60a171de30a2842fda31af3c0792 100644 (file)
--- a/SL/IC.pm
+++ b/SL/IC.pm
@@ -288,7 +288,7 @@ sub save {
   my ($self, $myconfig, $form) = @_;
   my @values;
   # connect to database, turn off AutoCommit
-  my $dbh = $form->dbconnect_noauto($myconfig);
+  my $dbh = $form->get_standard_dbh;
 
   # save the part
   # make up a unique handle and store in partnumber field
@@ -593,7 +593,6 @@ sub save {
 
   # commit
   my $rc = $dbh->commit;
-  $dbh->disconnect;
 
   $main::lxdebug->leave_sub();