From d13408232bfd23d718fee1bc76535196ff409880 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 5 Jan 2012 10:53:02 +0100 Subject: [PATCH] ParseFilter kann jetzt alle Rose Filter. --- SL/Controller/Helper/ParseFilter.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SL/Controller/Helper/ParseFilter.pm b/SL/Controller/Helper/ParseFilter.pm index 7c393b01c..61b819c88 100644 --- a/SL/Controller/Helper/ParseFilter.pm +++ b/SL/Controller/Helper/ParseFilter.pm @@ -20,11 +20,10 @@ my %filters = ( ); my %methods = ( - lt => sub { +{ lt => $_[0] } }, - gt => sub { +{ gt => $_[0] } }, - ilike => sub { +{ ilike => $_[0] } }, - like => sub { +{ like => $_[0] } }, enable => sub { ;;;; }, + map { + $_ => sub { +{ $_ => $_[0] } }, + } qw(similar match imatch regex regexp like ilike rlike is is_not ne eq lt gt le ge), ); sub parse_filter { -- 2.20.1