diff options
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 66f4109c7..70c989eca 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -336,6 +336,13 @@ $vars->{'cloned_bug_id'} = $cloned_bug_id; $vars->{'token'} = Bugzilla::Token::IssueSessionToken('createbug:'); + +my @enter_bug_fields = Bugzilla->get_fields({ custom => 1, obsolete => 0, + enter_bug => 1 }); +foreach my $field (@enter_bug_fields) { + $vars->{$field->name} = formvalue($field->name); +} + if ($cloned_bug_id) { $default{'component_'} = $cloned_bug->{'component'}; @@ -357,6 +364,10 @@ if ($cloned_bug_id) { $vars->{'cc'} = formvalue('cc'); } + foreach my $field (@enter_bug_fields) { + $vars->{$field->name} = $cloned_bug->{$field->name}; + } + # We need to ensure that we respect the 'insider' status of # the first comment, if it has one. Either way, make a note # that this bug was cloned from another bug. |