From a1911aa1dcf5a7e3fe6c56b61a03098f18e596c2 Mon Sep 17 00:00:00 2001 From: Pami Ketolainen Date: Tue, 3 Sep 2013 11:57:13 +0200 Subject: Bug 901589: The 'isempty' operator does not work for custom multiselect fields r/a=glob --- Bugzilla/Search.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Bugzilla') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 557acec74..18b2a3107 100644 --- a/Bugzilla/Search.pm +++ b/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"; + } } ############################### -- cgit v1.2.3-24-g4f1b