diff options
-rw-r--r-- | Bugzilla/Config/Query.pm | 2 | ||||
-rwxr-xr-x | buglist.cgi | 6 | ||||
-rw-r--r-- | template/en/default/admin/params/query.html.tmpl | 3 | ||||
-rw-r--r-- | template/en/default/search/search-specific.html.tmpl | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/Bugzilla/Config/Query.pm b/Bugzilla/Config/Query.pm index afd330898..74e265037 100644 --- a/Bugzilla/Config/Query.pm +++ b/Bugzilla/Config/Query.pm @@ -75,7 +75,7 @@ sub get_param_list { }, { - name => 'quicksearch_allow_empty_words', + name => 'specific_search_allow_empty_words', type => 'b', default => 0 } diff --git a/buglist.cgi b/buglist.cgi index 0f5c55691..aa19a4b4b 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -75,9 +75,9 @@ if (defined($searchstring)) { } # If configured to not allow empty words, reject empty searches from the -# simple search form, including words being a single or several consecutive -# whitespaces only. -if (!Bugzilla->params->{'quicksearch_allow_empty_words'} +# Find a Specific Bug search form, including words being a single or +# several consecutive whitespaces only. +if (!Bugzilla->params->{'specific_search_allow_empty_words'} && defined($cgi->param('content')) && $cgi->param('content') =~ /^\s*$/) { ThrowUserError("buglist_parameters_required"); diff --git a/template/en/default/admin/params/query.html.tmpl b/template/en/default/admin/params/query.html.tmpl index b3f0b0f66..cdc48473e 100644 --- a/template/en/default/admin/params/query.html.tmpl +++ b/template/en/default/admin/params/query.html.tmpl @@ -56,5 +56,6 @@ "to search comments. If the QuickSearch query contains " _ "more terms than this value, QuickSearch will not search comments.", - quicksearch_allow_empty_words => "Whether to allow a QuickSearch with empty Words." } + specific_search_allow_empty_words => "Whether to allow a search on the 'Find a Specific " _ + "Bug' page with an empty 'Words' field." } %] diff --git a/template/en/default/search/search-specific.html.tmpl b/template/en/default/search/search-specific.html.tmpl index af633ddf7..5e3c93829 100644 --- a/template/en/default/search/search-specific.html.tmpl +++ b/template/en/default/search/search-specific.html.tmpl @@ -110,7 +110,7 @@ for "crash secure SSL flash". <td></td> <td> - [% IF Param('quicksearch_allow_empty_words') %] + [% IF Param('specific_search_allow_empty_words') %] <input type="submit" id="search" value="Search"> [% ELSE %] <input type="submit" id="search" value="Search" |