]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 151648 - QA Contact stuff displayed even if you aren't using QA Contacts. 2xr...
authorgerv%gerv.net <>
Thu, 18 Jul 2002 01:28:37 +0000 (01:28 +0000)
committergerv%gerv.net <>
Thu, 18 Jul 2002 01:28:37 +0000 (01:28 +0000)
template/en/default/account/prefs/email.html.tmpl

index e3ff6b86c7c0684801aea2d56de1a79bac472f4d..5bf4920174705a67972ffd5dddd8bc3026eafe4e 100644 (file)
@@ -30,6 +30,8 @@
   #               receiving mail for that reason when in that role.
   # Also references the 'supportwatchers' Param.
   #%]
+
+[% useqacontact = Param('useqacontact') %]
  
 <table>
   [% IF Param('supportwatchers') %]
@@ -96,7 +98,7 @@
 
 <table width="100%" border="1">
   <tr>
-    <td colspan="5" align="center" width="50%">
+    <td colspan="[% useqacontact ? '5' : '4' %]" align="center" width="50%">
       <b>When my relationship to this bug is:</b>
     </td>
     <td rowspan="2" width="50%">
     <td align="center" width="10%">
       <b>Assignee</b>
     </td>
-    <td align="center" width="10%">
-      <b>QA Contact</b>
-    </td>
+    [% IF useqacontact %]
+      <td align="center" width="10%">
+        <b>QA Contact</b>
+      </td>
+    [% END %]
     <td align="center" width="10%">
       <b>CC</b>
     </td>
     <tr>
       [% FOREACH role = [ "Reporter", "Owner", "QAcontact", "CClist", "Voter" ] 
        %]
+        [% NEXT IF role == "QAcontact" AND NOT useqacontact %]
         <td align="center">
           <input type="checkbox" name="email[% role %][% reason.name %]" value="on"
             [% " checked" IF $role.${reason.name} %]>