Commit 378f60e2 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 c38c549a
......@@ -65,7 +65,10 @@ sub add {
# 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);
......
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