From df6e607db567ecc5270305d351f034176c30c52e Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Sat, 20 Jan 2018 13:25:16 -0500 Subject: [PATCH] LP1744489: Location Search Limiter search.calculate_visibility_attribute_test expects an array for the second parameter and was getting a plain integer (or too many parameters). Signed-off-by: Jason Boyer Signed-off-by: Mike Rylander --- .../perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm index 6a1d872e7c..4b4548397e 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm @@ -1534,7 +1534,7 @@ sub flatten { my $negate = $filter->negate ? 'TRUE' : 'FALSE'; my $filter_args = join(",", map(int, @{$filter->args})); push @{$vis_filter{'c_attr'}}, - "search.calculate_visibility_attribute_test('location',$filter_args,$negate)"; + "search.calculate_visibility_attribute_test('location','{$filter_args}',$negate)"; } } elsif ($filter->name eq 'location_groups') { -- 2.11.0