]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 180692 - enter_bug shows keywords option even if keywords are disabled
authorburnus%gmx.de <>
Fri, 28 Feb 2003 05:13:27 +0000 (05:13 +0000)
committerburnus%gmx.de <>
Fri, 28 Feb 2003 05:13:27 +0000 (05:13 +0000)
r=bbaetz, a=justdave

enter_bug.cgi
template/en/default/bug/create/create.html.tmpl

index 7f74c54838ec0cb12352bb3ea5e2914c946aa558..b0dbeaa2ff3aaee4c3b21a5fde58357dc40cf004 100755 (executable)
@@ -356,6 +356,8 @@ $vars->{'group'} = \@groups;
 
 $vars->{'default'} = \%default;
 
+$vars->{'use_keywords'} = 1 if (@::legal_keywords);
+
 my $format = 
   GetFormat("bug/create/create", $::FORM{'format'}, $::FORM{'ctype'});
 
index 302c7e3d9ae559ba245fa3c6b58e9eed672deb5d..c59cd3a7078fd6e39df4e35fbcd9d0251e8d786d 100644 (file)
   </tr>
 
   [% IF UserInGroup('editbugs') %]
-    <tr>
-      <td align="right" valign="top">
-        <strong>
-          <a href="describekeywords.cgi">Keywords</a>:
-        </strong>
-      </td>
-      <td colspan="3">
-        <input name="keywords" size="60" value=""> (optional)
-      </td>
-    </tr>
+    [% IF use_keywords %]
+      <tr>
+        <td align="right" valign="top">
+          <strong>
+            <a href="describekeywords.cgi">Keywords</a>:
+          </strong>
+        </td>
+        <td colspan="3">
+          <input name="keywords" size="60" value=""> (optional)
+        </td>
+      </tr>
+    [% END %]
     <tr>
       <td align="right">
         <strong>Depends on:</strong>