summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/edit.html.tmpl1
-rw-r--r--template/en/default/list/edit-multiple.html.tmpl5
2 files changed, 5 insertions, 1 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 3ec871282..496a98b1b 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -1000,6 +1000,7 @@
[% FOREACH field = Bugzilla.active_custom_fields(product=>bug.product_obj,component=>bug.component_obj) %]
[% NEXT IF field.type == constants.FIELD_TYPE_EXTENSION %]
[% NEXT IF NOT user.id AND field.value == "---" %]
+ [%# BMO hook for controlling field visibility %]
[% Hook.process('custom_field', 'bug/edit.html.tmpl') %]
[% NEXT IF field.hidden %]
<tr>
diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl
index 6a3269dff..8a1de5f2d 100644
--- a/template/en/default/list/edit-multiple.html.tmpl
+++ b/template/en/default/list/edit-multiple.html.tmpl
@@ -290,8 +290,11 @@
[% custom_fields = Bugzilla.active_custom_fields %]
[% END %]
[% FOREACH field = custom_fields %]
+ [%# BMO hook for controlling field visibility %]
+ [% Hook.process('custom_field', 'list/edit-multiple.html.tmpl', ) %]
+ [% NEXT IF field.hidden %]
<tr>
- [% PROCESS bug/field.html.tmpl bug = default
+ [% PROCESS bug/field.html.tmpl bug = bug
value = dontchange
editable = 1
allow_dont_change = 1 %]