From: Martin Helmling martin.helmling@octosoft.eu Date: Tue, 2 Aug 2016 13:24:16 +0000 (+0200) Subject: BUG-FIX: LOCK TABLE parts in CVS-Import Artikel X-Git-Tag: release-3.5.4~2157 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=22cc0ebc5016c36194aa6e14a156f4cd8ac3ae1c;p=kivitendo-erp.git 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 --- 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; }