summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/LastResolved/template/en/default/hook/list/edit-multiple-custom_field.html.tmpl11
-rw-r--r--template/en/default/bug/edit.html.tmpl1
-rw-r--r--template/en/default/list/edit-multiple.html.tmpl5
3 files changed, 16 insertions, 1 deletions
diff --git a/extensions/LastResolved/template/en/default/hook/list/edit-multiple-custom_field.html.tmpl b/extensions/LastResolved/template/en/default/hook/list/edit-multiple-custom_field.html.tmpl
new file mode 100644
index 000000000..31e645c32
--- /dev/null
+++ b/extensions/LastResolved/template/en/default/hook/list/edit-multiple-custom_field.html.tmpl
@@ -0,0 +1,11 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[% IF field.name == "cf_last_resolved" %]
+ [% field.hidden = 1 %]
+[% END %]
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 %]