From 19de3c72cf74951dd2f2ae7e400cf9a253d23641 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 29 Dec 2010 17:10:53 +0100 Subject: [PATCH] =?utf8?q?Garantieren,=20dass=20gewisse=20Eintr=C3=A4ge=20?= =?utf8?q?in=20$self=20vorhanden=20sind,=20bevor=20sie=20benutzt=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1492. --- SL/AccTransCorrections.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/AccTransCorrections.pm b/SL/AccTransCorrections.pm index 702cf29c0..ea7ca531d 100644 --- a/SL/AccTransCorrections.pm +++ b/SL/AccTransCorrections.pm @@ -649,6 +649,8 @@ sub analyze { my @problems = @{ $self->{problems} }; + map { $self->{$_} ||= [] } qw(ap_ar_taxkey_problems invoice_inventory_taxkey_problems missing_taxkeys_in_invoices); + if (0 != scalar @{ $self->{ap_ar_taxkey_problems} }) { my $problem = { 'type' => 'ap_ar_wrong_taxkeys', -- 2.20.1