Commit 21c92686 authored by Frédéric Buclin's avatar Frédéric Buclin

Temporary fix for bug 916882: whitelist product and component when used with the changed* operators

r/a=glob
parent 9ddb2294
...@@ -66,7 +66,10 @@ sub add { ...@@ -66,7 +66,10 @@ sub add {
# Unsupported fields # Unsupported fields
if (grep { $_ eq $field } UNSUPPORTED_FIELDS ) { if (grep { $_ eq $field } UNSUPPORTED_FIELDS ) {
ThrowUserError('search_grouped_field_invalid', { field => $field }); # XXX - Hack till bug 916882 is fixed.
my $operator = scalar(@args) == 3 ? $args[1] : $args[0]->{operator};
ThrowUserError('search_grouped_field_invalid', { field => $field })
unless (($field eq 'product' || $field eq 'component') && $operator =~ /^changed/);
} }
$self->SUPER::add(@args); $self->SUPER::add(@args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment