зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
597eef16f6
Коммит
33553ceb04
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче