summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-09-24 09:55:05 +0200
committermkanat%bugzilla.org <>2008-09-24 09:55:05 +0200
commit4ab6c90fff265849d9284b5d4f9aca93da231edd (patch)
treec0a4c366a9086560ec3602c65131e28c2c0bd90f /template/en/default/bug
parentda12b9b0e2661b02133a0ed27f26811e8a79e117 (diff)
downloadbugzilla-4ab6c90fff265849d9284b5d4f9aca93da231edd.tar.gz
bugzilla-4ab6c90fff265849d9284b5d4f9aca93da231edd.tar.xz
Bug 357904: Create an object for a Field Value and have Bugzilla::Field->legal_values use it
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bbaetz, a=mkanat
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/field.html.tmpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index 39f69cfd2..762e659db 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -100,9 +100,10 @@
</option>
[% END %]
[% FOREACH legal_value = field.legal_values %]
- <option value="[% legal_value FILTER html %]"
- [%- " selected=\"selected\"" IF value.contains(legal_value).size %]>
- [%- legal_value FILTER html %]</option>
+ <option value="[% legal_value.name FILTER html %]"
+ [%- " selected=\"selected\""
+ IF value.contains(legal_value.name).size %]>
+ [%- legal_value.name FILTER html %]</option>
[% END %]
</select>
[%# When you pass an empty multi-select in the web interface,