From 1622591fb61de5f8f2a2b482c9df5816d379892e Mon Sep 17 00:00:00 2001 From: Pami Ketolainen Date: Tue, 29 Oct 2013 12:58:45 +0100 Subject: Bug 863745: Enable multi-select fields in reports r=LpSolit a=glob --- Bugzilla/Search.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Bugzilla') 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}; -- cgit v1.2.3-24-g4f1b