aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-08-26 23:31:44 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-08-26 23:31:44 +0200
commit7d3c1b0d13c8d060c220bcccbce705f05be398d0 (patch)
tree510002fcae7feec63666c10f9a763759be16434b /template/en/default/bug/edit.html.tmpl
parentBug 1197436: A remembered search with a ' cannot be edited or deleted (diff)
downloadbugzilla-7d3c1b0d13c8d060c220bcccbce705f05be398d0.tar.gz
bugzilla-7d3c1b0d13c8d060c220bcccbce705f05be398d0.tar.bz2
bugzilla-7d3c1b0d13c8d060c220bcccbce705f05be398d0.zip
Bug 1196969: Custom fields whose visibility depends on the product are not displayed/hidden correctly
r=gerv a=sgreen
Diffstat (limited to 'template/en/default/bug/edit.html.tmpl')
-rw-r--r--template/en/default/bug/edit.html.tmpl20
1 files changed, 6 insertions, 14 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 90151161e..b8abe6bc5 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -229,20 +229,12 @@
[%# PRODUCT #%]
[%#############%]
<tr>
- [% INCLUDE "bug/field-label.html.tmpl"
- field = bug_fields.product
- desc_url = 'describecomponents.cgi'
- value = bug.product
- %]
- <td class="field_value" id="field_container_product">
- [% INCLUDE "global/product-select.html.tmpl"
- id => "product"
- name => "product"
- value => bug.product
- products => bug.choices.product
- isselect => bug.check_can_change_field('product', 0, 1)
- %]
- </td>
+ [% INCLUDE bug/field.html.tmpl
+ bug = bug, field = bug_fields.product, value = bug.product
+ override_legal_values = bug.choices.product
+ desc_url = "describecomponents.cgi"
+ editable = bug.check_can_change_field('product', 0, 1)
+ %]
</tr>
[%# Classification is here so that it can be used in value controllers