summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Fearn <jfearn@redhat.com>2020-10-10 08:17:26 +1000
committerJeff Fearn <jfearn@redhat.com>2020-10-10 08:17:26 +1000
commit865c694e8975b9a4560172b3d337db8f458402cd (patch)
tree51ab8ae1de399b20bad216cc405c952e988bf653
parentRelease Version 5.0.4-rh49 (diff)
downloadbugzilla-865c694e8975b9a4560172b3d337db8f458402cd.tar.gz
bugzilla-865c694e8975b9a4560172b3d337db8f458402cd.tar.bz2
bugzilla-865c694e8975b9a4560172b3d337db8f458402cd.zip
Bug 1886889 - dependent products trigger failure in flag mailRelease-5.0.4-rh50
Skip filtered headers if user object not set. Change-Id: Icc1e0ffb3a9e87082eae5ebe1dbcf4ef73dc8c7a
-rw-r--r--template/en/default/email/header-common.txt.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/template/en/default/email/header-common.txt.tmpl b/template/en/default/email/header-common.txt.tmpl
index 66af3e8a9..2651e4d80 100644
--- a/template/en/default/email/header-common.txt.tmpl
+++ b/template/en/default/email/header-common.txt.tmpl
@@ -37,6 +37,7 @@ X-Bugzilla-Flags: [% heading_flags %]
[% IF bug.cf_partner.size > 0 %]
X-Bugzilla-Partner: [% bug.cf_partner.join(" ") %]
[% END %]
+[% IF to_user %]
[% ## REDHAT EXTENSION BEGIN 1626576 %]
[% IF to_user.can_view_cf('cf_internal_target_release', to_user)
&& bug.can_have_cf('cf_internal_target_release') %]
@@ -64,3 +65,4 @@ X-Bugzilla-Pool: [% bug.pool.name %]
X-Bugzilla-Team: [% bug.agile_team_obj.name %]
[% END %]
[% ## REDHAT EXTENSION END 1795714 %]
+[% END %]