Fix new __age acq search operator
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 31 Oct 2019 20:53:11 +0000 (16:53 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 16 Jan 2020 21:38:28 +0000 (16:38 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Search.pm

index e1ce5e6..14fdced 100644 (file)
@@ -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