From 9e478ddf25411f901bf552e8b85e5a0776775ea0 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 11 Jan 2016 12:27:18 +0800 Subject: Bug 1237185 - hide 'cab review' custom field behind a "click through" to direct people to servicenow --- .../default/hook/bug/edit-custom_field.html.tmpl | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'extensions/BMO/template/en') diff --git a/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl b/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl index c11e6ea42..d81299004 100644 --- a/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl @@ -60,3 +60,45 @@ RETURN; END; %] + +[% + IF field.name == 'cf_cab_review' AND bug.cf_cab_review == '---'; + field.hidden = 1; + value = '---'; +%] + [%# lifted from bug/field.html.tmpl %] + + [% PROCESS "bug/field-label.html.tmpl" hidden=0 %] + + + ServiceNow Change Request + (use flag) + + + + +[% + RETURN; + END; +%] -- cgit v1.2.3-24-g4f1b