From 96631b1ad3fdec29af66f78d5978d268ff84a049 Mon Sep 17 00:00:00 2001 From: "bzrmirror%bugzilla.org" Date: Tue, 24 Sep 2013 09:48:22 +0000 Subject: [PATCH] Temporary fix for bug 916882: whitelist product and component when used with the changed* operators r/a=glob git-svn-id: svn://10.0.0.236/trunk@265030 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/Search/ClauseGroup.pm | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 80cc0ef73b5..726de152529 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8751 \ No newline at end of file +8752 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/Search/ClauseGroup.pm b/mozilla/webtools/bugzilla/Bugzilla/Search/ClauseGroup.pm index a50dc4fb370..eb306525c2b 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Search/ClauseGroup.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Search/ClauseGroup.pm @@ -66,7 +66,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);