diff options
author | burnus%gmx.de <> | 2003-02-28 06:13:27 +0100 |
---|---|---|
committer | burnus%gmx.de <> | 2003-02-28 06:13:27 +0100 |
commit | fffe057ba30815677909a93bb719451fb6d8f92c (patch) | |
tree | cccaa6717f65bb4a4aeb556698d27334ba2144fa | |
parent | da98b60ae00290034e504dca9156245b712cf2df (diff) | |
download | bugzilla-fffe057ba30815677909a93bb719451fb6d8f92c.tar.gz bugzilla-fffe057ba30815677909a93bb719451fb6d8f92c.tar.xz |
Bug 180692 - enter_bug shows keywords option even if keywords are disabled
r=bbaetz, a=justdave
-rwxr-xr-x | enter_bug.cgi | 2 | ||||
-rw-r--r-- | template/en/default/bug/create/create.html.tmpl | 22 |
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> |