From: Werner Hahn Date: Wed, 16 Feb 2022 09:09:21 +0000 (+0100) Subject: MassRecordCreationAndPrinting: dbh transactions sicherer X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~210 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=deb78525654e0;p=kivitendo-erp.git MassRecordCreationAndPrinting: dbh transactions sicherer --- diff --git a/SL/BackgroundJob/MassRecordCreationAndPrinting.pm b/SL/BackgroundJob/MassRecordCreationAndPrinting.pm index ebd20e13e..4cc2519d5 100644 --- a/SL/BackgroundJob/MassRecordCreationAndPrinting.pm +++ b/SL/BackgroundJob/MassRecordCreationAndPrinting.pm @@ -42,7 +42,7 @@ sub create_invoices { my $job_obj = $self->{job_obj}; my $db = $job_obj->db; - my $dbh = SL::DB->client->dbh; + my $dbh = $db->dbh; $job_obj->set_data(status => CONVERTING_DELIVERY_ORDERS())->save;