From 4c313ecf54813bb13c72804f9db3a6d02a20d7bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 14 May 2014 12:44:20 +0200 Subject: [PATCH] CsvImport Waren: test_run/import in check_existing nicht unterschiedlich behandeln. Das funktionierte im Standard wg. der falschen Benennung ('test' vs. 'test_run') ohnehin nicht und bei richtiger Benennung gab es auch noch Probleme. --- 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 81471ab95..79c1b9192 100644 --- a/SL/Controller/CsvImport/Part.pm +++ b/SL/Controller/CsvImport/Part.pm @@ -203,7 +203,7 @@ sub check_existing { my $object = $entry->{object}; - if (!$self->test_run && $object->partnumber && $self->parts_by->{partnumber}{$object->partnumber}) { + if ($object->partnumber && $self->parts_by->{partnumber}{$object->partnumber}) { $entry->{part} = SL::DB::Manager::Part->find_by( SL::DB::Manager::Part->type_filter($object->type), ( partnumber => $object->partnumber ) x!! $object->partnumber, -- 2.20.1