From 80d5f1702f74398422c8afadd6f2a7f8921a7c94 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 12 Jul 2013 10:08:35 +0200 Subject: [PATCH] Part-Manager: leere Strings im Typenfilter ignorieren --- SL/DB/Manager/Part.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Manager/Part.pm b/SL/DB/Manager/Part.pm index fccbbd95b..d286924d9 100644 --- a/SL/DB/Manager/Part.pm +++ b/SL/DB/Manager/Part.pm @@ -38,7 +38,7 @@ sub type_filter { $type = [ grep { $type->{$_} } keys %$type ]; } - my @types = listify($type); + my @types = grep { $_ } listify($type); my @filter; for my $type (@types) { -- 2.20.1