ParseFilter: Erlauben, dass custom filter leere Listen zurückgeben
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 13 Sep 2013 12:00:12 +0000 (14:00 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 14 Oct 2013 09:56:11 +0000 (11:56 +0200)
SL/Controller/Helper/ParseFilter.pm

index db59408..afe9b7b 100644 (file)
@@ -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;
 }