diff options
author | Pami Ketolainen <pami.ketolainen@jollamobile.com> | 2013-09-03 11:57:13 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-09-03 11:57:13 +0200 |
commit | a1911aa1dcf5a7e3fe6c56b61a03098f18e596c2 (patch) | |
tree | a378a0a10ffca3df726f6633adf3b29f1ab07c32 /Bugzilla | |
parent | 29a3667d3920a778e68e16f2badf000697edfb1b (diff) | |
download | bugzilla-a1911aa1dcf5a7e3fe6c56b61a03098f18e596c2.tar.gz bugzilla-a1911aa1dcf5a7e3fe6c56b61a03098f18e596c2.tar.xz |
Bug 901589: The 'isempty' operator does not work for custom multiselect fields
r/a=glob
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 9 |
1 files changed, 9 insertions, 0 deletions
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"; + } } ############################### |