From df2057b857d530bc01adfb68fb3a1fddeffc322c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 5 Sep 2016 13:01:33 +0200 Subject: [PATCH] CsvImport/Part: uninitialized hash value warning behoben --- 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 09430c6ab..80fd3cec4 100644 --- a/SL/Controller/CsvImport/Part.pm +++ b/SL/Controller/CsvImport/Part.pm @@ -223,7 +223,7 @@ sub check_buchungsgruppe { $object->buchungsgruppen_id(undef) if $object->buchungsgruppen_id && !$self->bg_by->{id}->{ $object->buchungsgruppen_id }; # 3. Look up name if supplied. - if (!$object->buchungsgruppen_id) { + if (!$object->buchungsgruppen_id && $entry->{raw_data}->{buchungsgruppe}) { my $bg = $self->bg_by->{description}->{ $entry->{raw_data}->{buchungsgruppe} }; $object->buchungsgruppen_id($bg->id) if $bg; } -- 2.20.1