summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-07-03 23:22:00 +0200
committerlpsolit%gmail.com <>2007-07-03 23:22:00 +0200
commitf8f988fbc1ca1d183dbeb8e1e942706552507e84 (patch)
treeef474bc7a2437f65926620636bf42446f57c89a7
parentee2eb7de3865e97dd48030da6cf48606d95fe152 (diff)
downloadbugzilla-f8f988fbc1ca1d183dbeb8e1e942706552507e84.tar.gz
bugzilla-f8f988fbc1ca1d183dbeb8e1e942706552507e84.tar.xz
Bug 385910: Rename the 'quicksearch_allow_empty_words' parameter to 'specific_search_allow_empty_words' (to avoid confusion with the QuickSearch feature) - Patch by Brad Johnson <fk7q01p02@sneakemail.com> r=wicked a=mkanat
-rw-r--r--Bugzilla/Config/Query.pm2
-rwxr-xr-xbuglist.cgi6
-rw-r--r--template/en/default/admin/params/query.html.tmpl3
-rw-r--r--template/en/default/search/search-specific.html.tmpl2
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"