]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/RequirementSpec.pm
»with_transaction« anstelle von »do_transaction« verwenden
[kivitendo-erp.git] / SL / DB / RequirementSpec.pm
index c35540c74a21eb7ea68128230daf71696ccdd9b0..024e60d7b58b8fc633dbf5b4a60d1f25a16ec404 100644 (file)
@@ -145,7 +145,7 @@ sub create_copy {
   return $self->_create_copy(%params) if $self->db->in_transaction;
 
   my $copy;
-  if (!$self->db->do_transaction(sub { $copy = $self->_create_copy(%params) })) {
+  if (!$self->db->with_transaction(sub { $copy = $self->_create_copy(%params) })) {
     $::lxdebug->message(LXDebug->WARN(), "create_copy failed: " . join("\n", (split(/\n/, $self->db->error))[0..2]));
     return undef;
   }