summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Search.pm3
-rw-r--r--extensions/BMO/lib/Reports.pm2
-rw-r--r--template/en/default/global/code-error.html.tmpl4
3 files changed, 8 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index c52f8a22d..7d2d63284 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -1747,6 +1747,9 @@ sub _do_operator_function {
my ($self, $func_args) = @_;
my $operator = $func_args->{operator};
my $operator_func = OPERATORS->{$operator};
+ my $operator_func = OPERATORS->{$$operator}
+ || ThrowCodeError("search_field_operator_unsupported",
+ { operator => $$operator });
$self->$operator_func($func_args);
}
diff --git a/extensions/BMO/lib/Reports.pm b/extensions/BMO/lib/Reports.pm
index e98e17d7b..55856e445 100644
--- a/extensions/BMO/lib/Reports.pm
+++ b/extensions/BMO/lib/Reports.pm
@@ -361,7 +361,7 @@ sub triage_reports {
my $input = Bugzilla->input_params;
my $user = Bugzilla->user;
- if ($input->{'action'} eq 'run' && $input->{'product'}) {
+ if (exists $input->{'action'} && $input->{'action'} eq 'run' && $input->{'product'}) {
# load product and components from input
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl
index 8a4252a7e..b4bf0d9bd 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -467,6 +467,10 @@
[% ELSIF error == "invalid_post_bug_submit_action" %]
Invalid setting for post_bug_submit_action
+ [% ELSIF error == "search_field_operator_unsupported" %]
+ [% terms.Bugzilla %] does not support the search type
+ "[% operator FILTER html %]".
+
[% ELSE %]
[%# Try to find hooked error messages %]
[% error_message = Hook.process("errors") %]