summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-07-18 07:29:52 +0200
committerByron Jones <glob@mozilla.com>2014-07-18 07:29:52 +0200
commitb2af966052d36b4029a55f7da197e3b8c05eb9f4 (patch)
tree2c49e664be39b751eb63ae82a3034cd7a0eb9671
parentaa7f12308604c29e1fa3c952636c4c8c38963c3c (diff)
downloadbugzilla-b2af966052d36b4029a55f7da197e3b8c05eb9f4.tar.gz
bugzilla-b2af966052d36b4029a55f7da197e3b8c05eb9f4.tar.xz
Bug 1037571: Change Several Bugs at Once Does Not Allow Modification of the QA Whiteboard
-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 %]