From 2685032ca4c707df736800ada3f32cb58eeddd1d Mon Sep 17 00:00:00 2001 From: "burnus%gmx.de" Date: Thu, 27 Feb 2003 21:13:30 +0000 Subject: [PATCH] Bug 180692 - enter_bug shows keywords option even if keywords are disabled r=bbaetz, a=justdave git-svn-id: svn://10.0.0.236/trunk@138626 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/enter_bug.cgi | 2 ++ .../en/default/bug/create/create.html.tmpl | 22 ++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/mozilla/webtools/bugzilla/enter_bug.cgi b/mozilla/webtools/bugzilla/enter_bug.cgi index 7f74c54838e..b0dbeaa2ff3 100755 --- a/mozilla/webtools/bugzilla/enter_bug.cgi +++ b/mozilla/webtools/bugzilla/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/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl index 302c7e3d9ae..c59cd3a7078 100644 --- a/mozilla/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl +++ b/mozilla/webtools/bugzilla/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: