From 53a08aae97603fe21631e448403e5ae8395c7d7f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 31 Oct 2019 16:53:11 -0400 Subject: [PATCH] Fix new __age acq search operator Signed-off-by: Galen Charlton --- Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Search.pm index e1ce5e6541..14fdced2c2 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Search.pm @@ -268,7 +268,7 @@ sub prepare_terms { $v =~ s/^\s*//; my $op = $gte ? '>=' : '<='; - $term_clause = {$k = {$op => {transform => 'age', params => ['now'], value => '-' . $v}}}; + $term_clause = {$k => {$op => {transform => 'age', params => ['now'], value => '-' . $v}}}; # !!! NOTE: we invert $not because we have to compare to a /negative/ # interval, due to json_query restiction on function parameter order for -- 2.11.0