summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-09-04 17:04:11 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-09-04 17:04:11 +0200
commit87f2b0d50663ce1dd85a501fa62546896dd80be9 (patch)
tree70cd25ac474322a0530c9c6fbb1eb3d8332ffaa4 /extensions/BMO/template/en/default/email/bugmail.txt.tmpl
parentc37ed27928f66df58fac01e9efc85e424333f623 (diff)
downloadbugzilla-87f2b0d50663ce1dd85a501fa62546896dd80be9.tar.gz
bugzilla-87f2b0d50663ce1dd85a501fa62546896dd80be9.tar.xz
Bug 773327 - Add a new footer to bugmail content that shows current tracking flag values
Diffstat (limited to 'extensions/BMO/template/en/default/email/bugmail.txt.tmpl')
-rw-r--r--extensions/BMO/template/en/default/email/bugmail.txt.tmpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/email/bugmail.txt.tmpl b/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
index d6b869841..c82827c61 100644
--- a/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
+++ b/extensions/BMO/template/en/default/email/bugmail.txt.tmpl
@@ -35,6 +35,21 @@ Referenced [% terms.Bugs %]:
-- [%# Protect the trailing space of the signature marker %]
Configure [% terms.bug %]mail: [% urlbase %]userprefs.cgi?tab=email
+
+[% USE Bugzilla %]
+[% tracking_flags = [] %]
+[% FOREACH field = Bugzilla.active_custom_fields(product => bug.product_obj, component => bug.component_obj, type => 2) %]
+ [% NEXT IF cf_flag_disabled(field.name, bug) %]
+ [% NEXT IF bug.${field.name} == "---" %]
+ [% tracking_flags.push(field) %]
+[% END %]
+[% IF tracking_flags.size %]
+------- Tracking Flags: -------
+[% FOREACH field = tracking_flags %]
+[%+ field.description %]:[% bug.${field.name} %]
+[% END %]
+[% END %]
+
------- You are receiving this mail because: -------
[% SET reason_lines = [] %]
[% FOREACH reason = reasons %]