From: Pami Ketolainen Date: Tue, 3 Sep 2013 09:57:13 +0000 (+0200) Subject: Bug 901589: The 'isempty' operator does not work for custom multiselect fields X-Git-Tag: bugzilla-4.5.1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1911aa1dcf5a7e3fe6c56b61a03098f18e596c2;p=thirdparty%2Fbugzilla.git Bug 901589: The 'isempty' operator does not work for custom multiselect fields r/a=glob --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 557acec74f..18b2a31075 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"; + } } ###############################