summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Bug.pm6
-rw-r--r--Bugzilla/Search.pm6
-rw-r--r--template/en/default/list/server-push.html.tmpl13
3 files changed, 13 insertions, 12 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 5fb4551e4..b1b4738f5 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1966,6 +1966,12 @@ sub _check_field_is_mandatory {
return if !$field->is_visible_on_bug($params || $invocant);
+ return if ($field->type == FIELD_TYPE_SINGLE_SELECT
+ && scalar @{ get_legal_field_values($field->name) } == 1);
+
+ return if ($field->type == FIELD_TYPE_MULTI_SELECT
+ && !scalar @{ get_legal_field_values($field->name) });
+
if (ref($value) eq 'ARRAY') {
$value = join('', @$value);
}
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index e70933db0..9b92b57d1 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -2536,6 +2536,7 @@ sub _multiselect_multiple {
my @terms;
foreach my $word (@words) {
+ next if $word eq '';
$args->{value} = $word;
$args->{quoted} = $dbh->quote($word);
push(@terms, $self->_multiselect_term($args));
@@ -2703,15 +2704,14 @@ sub _anyexact {
sub _anywordsubstr {
my ($self, $args) = @_;
- my ($full_field, $value) = @$args{qw(full_field value)};
-
+
my @terms = $self->_substring_terms($args);
$args->{term} = join("\n\tOR ", @terms);
}
sub _allwordssubstr {
my ($self, $args) = @_;
-
+
my @terms = $self->_substring_terms($args);
$args->{term} = join("\n\tAND ", @terms);
}
diff --git a/template/en/default/list/server-push.html.tmpl b/template/en/default/list/server-push.html.tmpl
index d1c157f72..914d827a9 100644
--- a/template/en/default/list/server-push.html.tmpl
+++ b/template/en/default/list/server-push.html.tmpl
@@ -33,15 +33,10 @@
<h1 style="margin-top: 20%; text-align: center;">Please stand by ...</h1>
[% IF debug %]
- <p>
- [% FOREACH debugline = debugdata %]
- <code>[% debugline FILTER html %]</code><br>
- [% END %]
- </p>
- <p>
- <code>[% query FILTER html %]</code>
- </p>
+ <p>[% query FILTER html %]</p>
+ [% IF query_explain.defined %]
+ <pre>[% query_explain FILTER html %]</pre>
+ [% END %]
[% END %]
-
</body>
</html>