]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 310532: Bookmarkable new bug templates do not include estimated hours or alias...
authorlpsolit%gmail.com <>
Sun, 13 Dec 2009 13:53:29 +0000 (13:53 +0000)
committerlpsolit%gmail.com <>
Sun, 13 Dec 2009 13:53:29 +0000 (13:53 +0000)
enter_bug.cgi
template/en/default/bug/create/create.html.tmpl

index e6e78eaa1fc889244721e1ec96079ff24333379e..7c88f8d476f9d2f6dbe8114098c6514c4353b06d 100755 (executable)
@@ -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'));
 
index 9b5944cc52b7105cef1bb8c0946083a7bba60cf3..d29913fc22cded0fd3b051de91f6682b53a69cca 100644 (file)
@@ -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 %]