diff options
author | ghendricks%novell.com <> | 2009-07-18 00:40:09 +0200 |
---|---|---|
committer | ghendricks%novell.com <> | 2009-07-18 00:40:09 +0200 |
commit | e394756f42902de5eade4f6738127c25fa2bcef7 (patch) | |
tree | bbb29b8118eb619d791ea4605207befa1a076692 /template/en/default/search/form.html.tmpl | |
parent | f304db03fdb9c7ad5c814700f048bb9061131cd3 (diff) | |
download | bugzilla-e394756f42902de5eade4f6738127c25fa2bcef7.tar.gz bugzilla-e394756f42902de5eade4f6738127c25fa2bcef7.tar.xz |
Bug 456743 - Add the ability to disable field values (mark them as inactive)
patch by ghendricks@novell.com r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default/search/form.html.tmpl')
-rw-r--r-- | template/en/default/search/form.html.tmpl | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 46df426c1..078ff8c6b 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -611,15 +611,17 @@ function doOnSelectProduct(selectmode) { <td align="left"> <select name="[% sel.name %]" id="[% sel.name %]" multiple="multiple" size="[% sel.size %]"> - [% FOREACH name = ${sel.name} %] - <option value="[% name FILTER html %]" - [% " selected" IF lsearch(default.${sel.name}, name) != -1 %]> + [% FOREACH value = ${sel.name} %] + [%# This only applies for Resolution really %] + <option value="[% value.name OR '---' FILTER html %]" + [% " selected" IF lsearch(default.${sel.name}, value.name) != -1 %]> [% IF sel.name == "bug_status" %] - [% get_status(name) FILTER html %] + [% get_status(value.name) FILTER html %] [% ELSIF sel.name == "resolution" %] - [% get_resolution(name) FILTER html %] + [%# Again, resolution has that odd empty value. Replace it with '---' %] + [% get_resolution(value.name) OR '---' FILTER html %] [% ELSE %] - [% name FILTER html %] + [% value.name FILTER html %] [% END %] </option> [% END %] |