summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xenter_bug.cgi2
-rw-r--r--template/en/default/bug/create/create.html.tmpl22
2 files changed, 14 insertions, 10 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 7f74c5483..b0dbeaa2f 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -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'});
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index 302c7e3d9..c59cd3a70 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -193,16 +193,18 @@
</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>