From 2635ababda68c467e164f99a984dc7ad1766028e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 27 Oct 2009 16:55:31 +0000 Subject: Bug 524675: "Edit Search" fails to preserve comment, URL, and whiteboard params - Patch by Frédéric Buclin r=ghendricks a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- query.cgi | 2 +- template/en/default/search/form.html.tmpl | 3 ++- template/en/default/search/search-help.html.tmpl | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/query.cgi b/query.cgi index ab07fbf0f..d07773bde 100755 --- a/query.cgi +++ b/query.cgi @@ -128,7 +128,7 @@ sub PrefillForm { "emailassigned_to", "emailcc", "emailqa_contact", "emaillongdesc", "content", "changedin", "votes", "short_desc", "short_desc_type", - "long_desc", "long_desc_type", "bug_file_loc", + "longdesc", "longdesc_type", "bug_file_loc", "bug_file_loc_type", "status_whiteboard", "status_whiteboard_type", "bug_id", "bugidtype", "keywords", "keywords_type", diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index c6b3c3b30..c7990fd24 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -273,8 +273,9 @@ function doOnSelectProduct(selectmode) { : + [% type = field.name _ "_type" %] [% INCLUDE "search/type-select.html.tmpl" - name = field.name _ "_type", + name = type, types = query_types, selected = default.$type.0 %] "target_milestone", html => "The target_milestone field is used to define when the engineer
the $terms.bug is assigned to expects to fix it." }, -{ id => "long_desc", +{ id => "longdesc", html => "$terms.Bugs have comments added to them by $terms.Bugzilla users. You can
search for some text in those comments." }, -{ id => "long_desc_type", +{ id => "longdesc_type", html => "The type of comment search you would like" }, { id => "bug_file_loc", html => "$terms.Bugs can have a URL associated with them - for example, a -- cgit v1.2.3-24-g4f1b