From 84ad2fe899cefcac5ac2a86af373bad5aa7d4058 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 12 Jul 2013 10:04:53 +0200 Subject: [PATCH] =?utf8?q?Part-Manager:=20mit=20Hash-artigem=20Type=20rich?= =?utf8?q?tig=20umgehen=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- 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 159f59998..fccbbd95b 100644 --- a/SL/DB/Manager/Part.pm +++ b/SL/DB/Manager/Part.pm @@ -35,7 +35,7 @@ sub type_filter { # this is to make selection like type => { part => 1, service => 1 } work if ('HASH' eq ref $type) { - $type = grep { $type->{$_} } keys %$type; + $type = [ grep { $type->{$_} } keys %$type ]; } my @types = listify($type); -- 2.20.1