From: Sven Schöling Date: Mon, 5 Sep 2016 11:01:33 +0000 (+0200) Subject: CsvImport/Part: uninitialized hash value warning behoben X-Git-Tag: release-3.5.4~2060 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=df2057b857d530bc01adfb68fb3a1fddeffc322c;p=kivitendo-erp.git CsvImport/Part: uninitialized hash value warning behoben --- 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; }