Commit f8f988fb authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 385910: Rename the 'quicksearch_allow_empty_words' parameter to…

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
parent ee2eb7de
......@@ -75,7 +75,7 @@ sub get_param_list {
},
{
name => 'quicksearch_allow_empty_words',
name => 'specific_search_allow_empty_words',
type => 'b',
default => 0
}
......
......@@ -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");
......
......@@ -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." }
%]
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment