summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/knob.html.tmpl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-10-06 07:38:29 +0200
committermkanat%bugzilla.org <>2009-10-06 07:38:29 +0200
commit4671e0ffd9920d000fb6191999288ed12d4dac52 (patch)
treea4592302ace3162d0482751a4019a1a31b65923e /template/en/default/bug/knob.html.tmpl
parent6e282d384995d9c8067302a6cbaae04eaba308a5 (diff)
downloadbugzilla-4671e0ffd9920d000fb6191999288ed12d4dac52.tar.gz
bugzilla-4671e0ffd9920d000fb6191999288ed12d4dac52.tar.xz
Bug 512618: Make Bugzilla::Bug::choices return Field::Choice objects, not just values
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default/bug/knob.html.tmpl')
-rw-r--r--template/en/default/bug/knob.html.tmpl7
1 files changed, 3 insertions, 4 deletions
diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl
index cd586fceb..10d58e51b 100644
--- a/template/en/default/bug/knob.html.tmpl
+++ b/template/en/default/bug/knob.html.tmpl
@@ -147,10 +147,9 @@
[% BLOCK select_resolution %]
<select name="resolution" id="resolution">
[% FOREACH r = bug.choices.resolution %]
- [% NEXT IF r == "MOVED" && bug.resolution != "MOVED" %]
- <option value="[% r FILTER html %]"
- [% "selected" IF r == bug.resolution %]>
- [% display_value("resolution", r) FILTER html %]</option>
+ <option value="[% r.name FILTER html %]"
+ [% ' selected="selected"' IF r.name == bug.resolution %]>
+ [% display_value("resolution", r.name) FILTER html %]</option>
[% END %]
</select>
[% END %]