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 <JBoyer@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
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') {