From b2af966052d36b4029a55f7da197e3b8c05eb9f4 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 18 Jul 2014 13:29:52 +0800 Subject: Bug 1037571: Change Several Bugs at Once Does Not Allow Modification of the QA Whiteboard --- .../en/default/hook/list/edit-multiple-custom_field.html.tmpl | 11 +++++++++++ template/en/default/bug/edit.html.tmpl | 1 + template/en/default/list/edit-multiple.html.tmpl | 5 ++++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 extensions/LastResolved/template/en/default/hook/list/edit-multiple-custom_field.html.tmpl 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 %] 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 %] - [% PROCESS bug/field.html.tmpl bug = default + [% PROCESS bug/field.html.tmpl bug = bug value = dontchange editable = 1 allow_dont_change = 1 %] -- cgit v1.2.3-24-g4f1b