Commit cb4a8bf4 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 310532: Bookmarkable new bug templates do not include estimated hours or…

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
parent 28b4f5b8
...@@ -416,6 +416,7 @@ if ($cloned_bug_id) { ...@@ -416,6 +416,7 @@ if ($cloned_bug_id) {
$vars->{'dependson'} = join (", ", $cloned_bug_id, @{$cloned_bug->dependson}); $vars->{'dependson'} = join (", ", $cloned_bug_id, @{$cloned_bug->dependson});
$vars->{'blocked'} = join (", ", @{$cloned_bug->blocked}); $vars->{'blocked'} = join (", ", @{$cloned_bug->blocked});
$vars->{'deadline'} = $cloned_bug->deadline; $vars->{'deadline'} = $cloned_bug->deadline;
$vars->{'estimated_time'} = $cloned_bug->estimated_time;
if (defined $cloned_bug->cc) { if (defined $cloned_bug->cc) {
$vars->{'cc'} = join (", ", @{$cloned_bug->cc}); $vars->{'cc'} = join (", ", @{$cloned_bug->cc});
...@@ -458,12 +459,14 @@ else { ...@@ -458,12 +459,14 @@ else {
$default{'rep_platform'} = pickplatform(); $default{'rep_platform'} = pickplatform();
$default{'op_sys'} = pickos(); $default{'op_sys'} = pickos();
$vars->{'alias'} = formvalue('alias');
$vars->{'short_desc'} = formvalue('short_desc'); $vars->{'short_desc'} = formvalue('short_desc');
$vars->{'bug_file_loc'} = formvalue('bug_file_loc', "http://"); $vars->{'bug_file_loc'} = formvalue('bug_file_loc', "http://");
$vars->{'keywords'} = formvalue('keywords'); $vars->{'keywords'} = formvalue('keywords');
$vars->{'dependson'} = formvalue('dependson'); $vars->{'dependson'} = formvalue('dependson');
$vars->{'blocked'} = formvalue('blocked'); $vars->{'blocked'} = formvalue('blocked');
$vars->{'deadline'} = formvalue('deadline'); $vars->{'deadline'} = formvalue('deadline');
$vars->{'estimated_time'} = formvalue('estimated_time');
$vars->{'cc'} = join(', ', $cgi->param('cc')); $vars->{'cc'} = join(', ', $cgi->param('cc'));
......
...@@ -436,7 +436,7 @@ TUI_hide_default('expert_fields'); ...@@ -436,7 +436,7 @@ TUI_hide_default('expert_fields');
<tr> <tr>
<th>Estimated Hours:</th> <th>Estimated Hours:</th>
<td colspan="2"> <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> </td>
</tr> </tr>
<tr> <tr>
...@@ -456,7 +456,7 @@ TUI_hide_default('expert_fields'); ...@@ -456,7 +456,7 @@ TUI_hide_default('expert_fields');
<tr> <tr>
<th>Alias:</th> <th>Alias:</th>
<td colspan="2"> <td colspan="2">
<input name="alias" size="20"> <input name="alias" size="20" value="[% alias FILTER html %]">
</td> </td>
</tr> </tr>
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment