From: Sven Schöling Date: Fri, 13 Sep 2013 12:00:12 +0000 (+0200) Subject: ParseFilter: Erlauben, dass custom filter leere Listen zurückgeben X-Git-Tag: release-3.1.0beta1~53 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0ac42632d632366aff45ae08ab4c2498bc750017;p=kivitendo-erp.git ParseFilter: Erlauben, dass custom filter leere Listen zurückgeben --- diff --git a/SL/Controller/Helper/ParseFilter.pm b/SL/Controller/Helper/ParseFilter.pm index db5940843..afe9b7b51 100644 --- a/SL/Controller/Helper/ParseFilter.pm +++ b/SL/Controller/Helper/ParseFilter.pm @@ -106,7 +106,7 @@ sub _parse_filter { ($key, $value) = _apply_all($key, $value, qr/\b::(\w+)/, { %methods, %{ $params{methods} || {} } }); ($key, $value) = _dispatch_custom_filters($params{class}, $with_objects, $key, $value) if $params{class}; - push @result, $key, $value; + push @result, $key, $value if defined $key; } return \@result; }