From fffe057ba30815677909a93bb719451fb6d8f92c Mon Sep 17 00:00:00 2001 From: "burnus%gmx.de" <> Date: Fri, 28 Feb 2003 05:13:27 +0000 Subject: Bug 180692 - enter_bug shows keywords option even if keywords are disabled r=bbaetz, a=justdave --- enter_bug.cgi | 2 ++ 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 @@ [% IF UserInGroup('editbugs') %] - - - - Keywords: - - - - (optional) - - + [% IF use_keywords %] + + + + Keywords: + + + + (optional) + + + [% END %] Depends on: -- cgit v1.2.3-24-g4f1b