From bbce5d90c022cdefd97f21198b9fe3fc5c0fb2ca Mon Sep 17 00:00:00 2001 From: "bzrmirror%bugzilla.org" Date: Tue, 3 Sep 2013 10:31:35 +0000 Subject: [PATCH] Bug 901589: The 'isempty' operator does not work for custom multiselect fields r/a=glob git-svn-id: svn://10.0.0.236/trunk@264995 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/Search.pm | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index cc7ad6e04aa..87f062cd730 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8725 \ No newline at end of file +8726 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/Search.pm b/mozilla/webtools/bugzilla/Bugzilla/Search.pm index 557acec74f2..18b2a310759 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Search.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Search.pm @@ -3007,6 +3007,15 @@ sub _multiselect_isempty { }; return "tag_$chart_id.id IS $not NULL"; } + elsif ($self->_multi_select_fields->{$field}) { + push @$joins, { + table => "bug_$field", + as => "bug_${field}_$chart_id", + from => 'bug_id', + to => 'bug_id', + }; + return "bug_${field}_$chart_id.bug_id IS $not NULL"; + } } ###############################