From: David Lawrence Date: Wed, 12 May 2010 17:08:21 +0000 (-0400) Subject: Bug 486050: Bugzilla should prefill quicksearch box when showing search results from... X-Git-Tag: bugzilla-3.7.1~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5977f8c2566a95fc5e2c3c05fe0551c47f718810;p=thirdparty%2Fbugzilla.git Bug 486050: Bugzilla should prefill quicksearch box when showing search results from a quicksearch r/a=mkanat --- diff --git a/buglist.cgi b/buglist.cgi index 576b95572e..65eb6f380c 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -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 diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl index 6ad638f723..fe665df67f 100644 --- a/template/en/default/global/common-links.html.tmpl +++ b/template/en/default/global/common-links.html.tmpl @@ -34,7 +34,8 @@ onsubmit="if (this.quicksearch.value == '') { alert('Please enter one or more search terms first.'); return false; } return true;"> - + [%-# Work around FF bug: keep this on one line %]