From: Moritz Bunkus Date: Fri, 12 Jul 2013 08:04:53 +0000 (+0200) Subject: Part-Manager: mit Hash-artigem Type richtig umgehen können X-Git-Tag: release-3.1.0beta1~175^2~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=84ad2fe899cefcac5ac2a86af373bad5aa7d4058;p=kivitendo-erp.git Part-Manager: mit Hash-artigem Type richtig umgehen können --- 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);