From: Sven Schöling Date: Thu, 5 Jan 2012 09:53:02 +0000 (+0100) Subject: ParseFilter kann jetzt alle Rose Filter. X-Git-Tag: release-3.0.0beta1~343^2^2~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d13408232bfd23d718fee1bc76535196ff409880;p=kivitendo-erp.git ParseFilter kann jetzt alle Rose Filter. --- 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 {