summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-12-13 14:53:29 +0100
committerlpsolit%gmail.com <>2009-12-13 14:53:29 +0100
commitcb4a8bf4954c38d06358c4a7509f3fac6fb1e705 (patch)
tree711ddd80829cce0f8070b2f6ad0df8d4c58e885c
parent28b4f5b847102e54eae8ce729cf68ed5e4e3ba02 (diff)
downloadbugzilla-cb4a8bf4954c38d06358c4a7509f3fac6fb1e705.tar.gz
bugzilla-cb4a8bf4954c38d06358c4a7509f3fac6fb1e705.tar.xz
Bug 310532: Bookmarkable new bug templates do not include estimated hours or alias fields - Patch by Mark Banner <bugzilla@standard8.plus.com> r/a=LpSolit
-rwxr-xr-xenter_bug.cgi3
-rw-r--r--template/en/default/bug/create/create.html.tmpl4
2 files changed, 5 insertions, 2 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index e6e78eaa1..7c88f8d47 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -416,6 +416,7 @@ if ($cloned_bug_id) {
$vars->{'dependson'} = join (", ", $cloned_bug_id, @{$cloned_bug->dependson});
$vars->{'blocked'} = join (", ", @{$cloned_bug->blocked});
$vars->{'deadline'} = $cloned_bug->deadline;
+ $vars->{'estimated_time'} = $cloned_bug->estimated_time;
if (defined $cloned_bug->cc) {
$vars->{'cc'} = join (", ", @{$cloned_bug->cc});
@@ -458,12 +459,14 @@ else {
$default{'rep_platform'} = pickplatform();
$default{'op_sys'} = pickos();
+ $vars->{'alias'} = formvalue('alias');
$vars->{'short_desc'} = formvalue('short_desc');
$vars->{'bug_file_loc'} = formvalue('bug_file_loc', "http://");
$vars->{'keywords'} = formvalue('keywords');
$vars->{'dependson'} = formvalue('dependson');
$vars->{'blocked'} = formvalue('blocked');
$vars->{'deadline'} = formvalue('deadline');
+ $vars->{'estimated_time'} = formvalue('estimated_time');
$vars->{'cc'} = join(', ', $cgi->param('cc'));
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index 9b5944cc5..d29913fc2 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -436,7 +436,7 @@ TUI_hide_default('expert_fields');
<tr>
<th>Estimated Hours:</th>
<td colspan="2">
- <input name="estimated_time" size="6" maxlength="6" value="0.0">
+ <input name="estimated_time" size="6" maxlength="6" value="[% estimated_time FILTER html %]">
</td>
</tr>
<tr>
@@ -456,7 +456,7 @@ TUI_hide_default('expert_fields');
<tr>
<th>Alias:</th>
<td colspan="2">
- <input name="alias" size="20">
+ <input name="alias" size="20" value="[% alias FILTER html %]">
</td>
</tr>
[% END %]