From: jocuri%softhome.net <> Date: Sat, 20 Nov 2004 20:18:34 +0000 (+0000) Subject: Patch for bug 267494: 'Voter' column should not appear in email preferences if param... X-Git-Tag: bugzilla-2.16.8~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81374097670e051ea1d9ab10f19cfbb4937ab3a9;p=thirdparty%2Fbugzilla.git Patch for bug 267494: 'Voter' column should not appear in email preferences if param(usevotes) is false; patch by Shane H. W. Travis , r=vladd, a=justdave. --- diff --git a/template/en/default/account/prefs/email.html.tmpl b/template/en/default/account/prefs/email.html.tmpl index 5bf4920174..71de881c65 100644 --- a/template/en/default/account/prefs/email.html.tmpl +++ b/template/en/default/account/prefs/email.html.tmpl @@ -17,6 +17,7 @@ # Rights Reserved. # # Contributor(s): Gervase Markham + # Shane H. W. Travis #%] [%# INTERFACE: @@ -32,6 +33,7 @@ #%] [% useqacontact = Param('useqacontact') %] +[% usevotes = Param('usevotes') %] [% IF Param('supportwatchers') %] @@ -98,7 +100,7 @@
- - + [% IF usevotes %] + + [% END %] [% FOREACH reason = [ @@ -147,6 +151,7 @@ [% FOREACH role = [ "Reporter", "Owner", "QAcontact", "CClist", "Voter" ] %] [% NEXT IF role == "QAcontact" AND NOT useqacontact %] + [% NEXT IF role == "Voter" AND NOT usevotes %]
+ When my relationship to this bug is: @@ -121,9 +123,11 @@ CC - Voter - + Voter +
diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index 08a021bb29..4f1f8c66c5 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -385,7 +385,7 @@ 'account/prefs/email.html.tmpl' => [ 'watchedusers', # Email - 'useqacontact ? \'5\' : \'4\'', + '(useqacontact AND usevotes) ? \'5\' : ((useqacontact OR usevotes) ? \'4\' : \'3\')', 'role', 'reason.name', 'reason.description',