summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormyk%mozilla.org <>2004-02-04 05:05:04 +0100
committermyk%mozilla.org <>2004-02-04 05:05:04 +0100
commitda67ec0f7409109b85427b8f0579dc9f5fc72ec9 (patch)
treeb67a5dc68cedb7e3422cd4266c6142a9a342a0ef
parent5f4585764873c8b7254c5c41e12b50d62d765301 (diff)
downloadbugzilla-da67ec0f7409109b85427b8f0579dc9f5fc72ec9.tar.gz
bugzilla-da67ec0f7409109b85427b8f0579dc9f5fc72ec9.tar.xz
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
-rwxr-xr-xenter_bug.cgi4
-rw-r--r--template/en/default/bug/create/create.html.tmpl6
2 files changed, 7 insertions, 3 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 1dd8aa96c..eedd1da7f 100755
--- a/enter_bug.cgi
+++ b/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/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index f654779fc..1a6f9de11 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -242,7 +242,7 @@ function set_assign_to() {
</strong>
</td>
<td colspan="3">
- <input name="keywords" size="60" value=""> (optional)
+ <input name="keywords" size="60" value="[% keywords FILTER html %]"> (optional)
</td>
</tr>
[% END %]
@@ -251,7 +251,7 @@ function set_assign_to() {
<strong>Depends on:</strong>
</td>
<td>
- <input name="dependson" accesskey="d">
+ <input name="dependson" accesskey="d" value="[% dependson FILTER html %]">
</td>
</tr>
<tr>
@@ -259,7 +259,7 @@ function set_assign_to() {
<strong>Blocks:</strong>
</td>
<td>
- <input name="blocked" accesskey="b">
+ <input name="blocked" accesskey="b" value="[% blocked FILTER html %]">
</td>
</tr>
[% END %]