From 0e52c06f2069cb5413abce39d6249bac73f045c8 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Fri, 11 Oct 2013 17:44:25 -0400 Subject: Bug 880829 - Migrate current custom field based tracking flags to the new Tracking Flags extension tables r=glob --- .../BMO/template/en/default/email/bugmail.html.tmpl | 12 +++--------- extensions/BMO/template/en/default/email/bugmail.txt.tmpl | 15 ++++----------- 2 files changed, 7 insertions(+), 20 deletions(-) (limited to 'extensions/BMO/template') diff --git a/extensions/BMO/template/en/default/email/bugmail.html.tmpl b/extensions/BMO/template/en/default/email/bugmail.html.tmpl index e84852289..7daec3b2e 100644 --- a/extensions/BMO/template/en/default/email/bugmail.html.tmpl +++ b/extensions/BMO/template/en/default/email/bugmail.html.tmpl @@ -76,20 +76,14 @@ Product/Component: [% bug.product FILTER html %] :: [% bug.component FILTER html %] -[% 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:
diff --git a/extensions/BMO/template/en/default/email/bugmail.txt.tmpl b/extensions/BMO/template/en/default/email/bugmail.txt.tmpl index 771157dd1..ed74ad880 100644 --- a/extensions/BMO/template/en/default/email/bugmail.txt.tmpl +++ b/extensions/BMO/template/en/default/email/bugmail.txt.tmpl @@ -39,18 +39,11 @@ Configure [% terms.bug %]mail: [% urlbase %]userprefs.cgi?tab=email ------------------------------- Product/Component: [%+ bug.product +%] :: [%+ bug.component %] -[% USE Bugzilla %] -[% show_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} == "---" %] - [% show_tracking_flags.push(field) %] -[% END %] - -[% IF show_tracking_flags.size %] +[% IF tracking_flags.size %] ------- Tracking Flags: ------- -[% FOREACH field = show_tracking_flags %] -[%+ field.description %]:[% bug.${field.name} %] +[% FOREACH flag = tracking_flags %] + [% NEXT IF bug.${flag.name} == "---" %] +[%+ flag.description %]:[% bug.${flag.name} %] [% END %] [% END %] -- cgit v1.2.3-24-g4f1b