summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPami Ketolainen <pami.ketolainen@jollamobile.com>2013-10-29 12:58:45 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-10-29 12:58:45 +0100
commit1622591fb61de5f8f2a2b482c9df5816d379892e (patch)
tree35e1296c37547ae3dab9535a3dd266fda275dee7 /Bugzilla/Search.pm
parentBug 930870: With Pod::Coverage 0.23, t/011pod.t fails if a module is not inst... (diff)
downloadbugzilla-1622591fb61de5f8f2a2b482c9df5816d379892e.tar.gz
bugzilla-1622591fb61de5f8f2a2b482c9df5816d379892e.tar.bz2
bugzilla-1622591fb61de5f8f2a2b482c9df5816d379892e.zip
Bug 863745: Enable multi-select fields in reports
r=LpSolit a=glob
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm10
1 files changed, 3 insertions, 7 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 7bd4381ed..e89a9b361 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -656,12 +656,7 @@ sub REPORT_COLUMNS {
# or simply don't work with the current reporting system.
my @no_report_columns =
qw(bug_id alias short_short_desc opendate changeddate
- flagtypes.name keywords relevance);
-
- # Multi-select fields are not currently supported.
- my @multi_selects = @{Bugzilla->fields(
- { obsolete => 0, type => FIELD_TYPE_MULTI_SELECT })};
- push(@no_report_columns, map { $_->name } @multi_selects);
+ flagtypes.name relevance);
# If you're not a time-tracker, you can't use time-tracking
# columns.
@@ -2863,9 +2858,10 @@ sub _multiselect_table {
sub _multiselect_term {
my ($self, $args, $not) = @_;
my ($operator) = $args->{operator};
+ my $value = $args->{value} || '';
# 'empty' operators require special handling
return $self->_multiselect_isempty($args, $not)
- if $operator =~ /^is(not)?empty$/;
+ if ($operator =~ /^is(not)?empty$/ || $value eq '---');
my $table = $self->_multiselect_table($args);
$self->_do_operator_function($args);
my $term = $args->{term};