X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/bb8edc8e935cc8d4699e071f645d511f6262d03b..ffc3f2f961dec8a99639032c786b59cd4002a808:/SL/Controller/BankTransaction.pm diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index d83039f39..77f5b963e 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -250,6 +250,7 @@ sub action_filter_drafts { foreach my $draft ( @{ $drafts } ) { my $draft_as_object = YAML::Load($draft->form); + next unless $draft_as_object->{vendor_id}; # we cannot filter for vendor name, if this is a gl draft my $vendor = SL::DB::Manager::Vendor->find_by(id => $draft_as_object->{vendor_id}); $draft->{vendor} = $vendor->name; $draft->{vendor_id} = $vendor->id;