From 95f21f71c1c5c2f6cf6a281a0174d8f247be1135 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 1 Jan 2021 10:46:24 +0100 Subject: [PATCH] POD fix: Rose Syntax Zeitvergleich braucht { . ilike gibt es nicht in Rose: like_operator => 'like', # only applicable to Postgres, defaulted to undef, i.e. render_as_table() uses 'ilike' for Postgres by default --- SL/Controller/Helper/ParseFilter.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SL/Controller/Helper/ParseFilter.pm b/SL/Controller/Helper/ParseFilter.pm index 8b68ee56e..e1b621f16 100644 --- a/SL/Controller/Helper/ParseFilter.pm +++ b/SL/Controller/Helper/ParseFilter.pm @@ -297,10 +297,11 @@ customer. L allows you to search for these by filtering them p query => [ 'customer.name' => 'John Doe', - 'department.description' => [ ilike => '%Sales%' ], - 'orddate' => [ lt => DateTime->today ], + 'department.description' => [ like => '%Sales%' ], + 'orddate' => { lt => DateTime->today }, ] + Unfortunately, if you specify them in your form as these strings, the form parser will convert them into nested structures like this: -- 2.20.1