From deb78525654e0313ac45f11a95fb62e0108bbcd2 Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Wed, 16 Feb 2022 10:09:21 +0100 Subject: [PATCH] MassRecordCreationAndPrinting: dbh transactions sicherer --- SL/BackgroundJob/MassRecordCreationAndPrinting.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1