From 0ac42632d632366aff45ae08ab4c2498bc750017 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 13 Sep 2013 14:00:12 +0200 Subject: [PATCH] =?utf8?q?ParseFilter:=20Erlauben,=20dass=20custom=20filte?= =?utf8?q?r=20leere=20Listen=20zur=C3=BCckgeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Helper/ParseFilter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1