Commit 5977f8c2 authored by David Lawrence's avatar David Lawrence

Bug 486050: Bugzilla should prefill quicksearch box when showing search results from a quicksearch

r/a=mkanat
parent 955abb3e
......@@ -1163,6 +1163,9 @@ if ($dotweak && scalar @bugs) {
# the "Remember search as" field.
$vars->{'defaultsavename'} = $cgi->param('query_based_on');
# If we did a quick search then redisplay the previously entered search
# string in the text field.
$vars->{'quicksearch'} = $searchstring;
################################################################################
# HTTP Header Generation
......
......@@ -34,7 +34,8 @@
onsubmit="if (this.quicksearch.value == '')
{ alert('Please enter one or more search terms first.');
return false; } return true;">
<input class="txt" type="text" id="quicksearch[% qs_suffix FILTER html %]" name="quicksearch">
<input class="txt" type="text" id="quicksearch[% qs_suffix FILTER html %]" name="quicksearch"
value="[% quicksearch FILTER html %]">
<input class="btn" type="submit" value="Search"
id="find[% qs_suffix FILTER html %]">
[%-# Work around FF bug: keep this on one line %]</form>
......
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