diff options
-rwxr-xr-x | report.cgi | 2 | ||||
-rw-r--r-- | template/en/default/search/form.html.tmpl | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/report.cgi b/report.cgi index 03ecfcb3f..66060723d 100755 --- a/report.cgi +++ b/report.cgi @@ -37,7 +37,7 @@ my $cgi = Bugzilla->cgi; if (grep(/^cmd-/, $cgi->param())) { my $params = $cgi->canonicalise_query("format", "ctype"); my $location = "query.cgi?format=" . $cgi->param('query_format') . - ($params ? "&$params" : "") . "\n\n"; + ($params ? "&$params" : ""); print $cgi->redirect($location); exit; diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 015387b11..2fd458148 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -332,7 +332,8 @@ function selectProduct(f) { [% PROCESS "global/field-descs.none.tmpl" %] [%# If we resubmit to ourselves, we need to know if we are using a format. %] -<input type="hidden" name="query_format" value="[% format FILTER html %]"> +[% thisformat = query_format != '' ? query_format : format %] +<input type="hidden" name="query_format" value="[% thisformat FILTER html %]"> [%# *** Summary *** %] |