From b43e68c878065a9bd22188e24a575ed2a4513298 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" Date: Tue, 3 Feb 2004 20:05:07 +0000 Subject: [PATCH] Fix for bug 220998: Allows blocks, dependson, and keywords values to be part of a bug entry template (i.e. a URL that presets those fields to specific values). Original patch by Ludovic Dubost. r=kiko --- webtools/bugzilla/enter_bug.cgi | 4 ++++ .../template/en/default/bug/create/create.html.tmpl | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/webtools/bugzilla/enter_bug.cgi b/webtools/bugzilla/enter_bug.cgi index 1dd8aa96cbd9..eedd1da7f48d 100755 --- a/webtools/bugzilla/enter_bug.cgi +++ b/webtools/bugzilla/enter_bug.cgi @@ -286,6 +286,10 @@ $default{'rep_platform'} = pickplatform(); $vars->{'op_sys'} = \@legal_opsys; $default{'op_sys'} = pickos(); +$vars->{'keywords'} = formvalue('keywords'); +$vars->{'dependson'} = formvalue('dependson'); +$vars->{'blocked'} = formvalue('blocked'); + # Use the version specified in the URL, if one is supplied. If not, # then use the cookie-specified value. (Posting a bug sets a cookie # for the current version.) If no URL or cookie version, the default diff --git a/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl b/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl index f654779fc795..1a6f9de118fa 100644 --- a/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl +++ b/webtools/bugzilla/template/en/default/bug/create/create.html.tmpl @@ -242,7 +242,7 @@ function set_assign_to() { - (optional) + (optional) [% END %] @@ -251,7 +251,7 @@ function set_assign_to() { Depends on: - + @@ -259,7 +259,7 @@ function set_assign_to() { Blocks: - + [% END %]