summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/edit.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/bug/edit.html.tmpl')
-rw-r--r--template/en/default/bug/edit.html.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 9434271d8..2ce19833e 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -375,8 +375,16 @@
[%#############%]
<tr>
+ [% IF bug.check_can_change_field('product', 0, 1) %]
+ [% prod_list = user.get_enterable_products %]
+ [% IF NOT user.can_enter_product(bug.product) %]
+ [% prod_list.unshift(bug.product_obj) %]
+ [% END %]
+ [% END %]
+
[% INCLUDE bug/field.html.tmpl
bug = bug, field = select_fields.product,
+ override_legal_values = prod_list
desc_url = 'describecomponents.cgi', value = bug.product
editable = bug.check_can_change_field('product', 0, 1) %]
</tr>