From 22cc0ebc5016c36194aa6e14a156f4cd8ac3ae1c Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Tue, 2 Aug 2016 15:24:16 +0200 Subject: [PATCH] BUG-FIX: LOCK TABLE parts in CVS-Import Artikel Problematik, dass alles andere mit Rose gemacht wird, die Teilenummern holen, jedoch nicht. Siehe auch Redmine #190 --- SL/Controller/CsvImport/Part.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/CsvImport/Part.pm b/SL/Controller/CsvImport/Part.pm index ad098964f..b5e918573 100644 --- a/SL/Controller/CsvImport/Part.pm +++ b/SL/Controller/CsvImport/Part.pm @@ -91,7 +91,7 @@ sub init_parts_by { # } my $parts_by = {}; - my $sth = prepare_execute_query($::form, $::form->get_standard_dbh, 'SELECT partnumber FROM parts'); + my $sth = prepare_execute_query($::form, SL::DB::Object->new->db->dbh, 'SELECT partnumber FROM parts'); while (my ($partnumber) = $sth->fetchrow_array()) { $parts_by->{partnumber}{$partnumber} = 1; } -- 2.20.1