}
}
-# Email everyone the details of the new bug
-$vars->{'mailrecipients'} = { 'cc' => \@cc,
- 'owner' => DBID_to_name($::FORM{'assigned_to'}),
- 'reporter' => $::COOKIE{'Bugzilla_login'},
- 'changer' => $::COOKIE{'Bugzilla_login'} };
+# Gather everyone interested in the details of the new bug (forced recipients)
+my $mailrecipients = { 'cc' => \@cc,
+ 'owner' => DBID_to_name($::FORM{'assigned_to'}),
+ 'reporter' => $::COOKIE{'Bugzilla_login'},
+ 'changer' => $::COOKIE{'Bugzilla_login'} };
if (defined $::FORM{'qa_contact'}) {
- $vars->{'mailrecipients'}->{'qacontact'} =
- DBID_to_name($::FORM{'qa_contact'});
+ $mailrecipients->{'qacontact'} = DBID_to_name($::FORM{'qa_contact'});
}
$vars->{'id'} = $id;
push (@{$vars->{'sentmail'}}, { type => 'created',
id => $id,
+ mailrecipients => $mailrecipients
});
foreach my $i (@all_deps) {
- push (@{$vars->{'sentmail'}}, { type => 'dep', id => $i, });
+ push (@{$vars->{'sentmail'}}, { type => 'dep',
+ id => $i,
+ mailrecipients => {
+ # Only force changer for dep BugMail
+ 'changer' => $::COOKIE{'Bugzilla_login'}
+ }
+ });
}
my @bug_list;
# Contributor(s): Gervase Markham <gerv@gerv.net>
#%]
+[%# INTERFACE:
+ # id: number; the ID of the bug that was created.
+ # sentmail: array of hash; bugs for which BugMail should be sent, contains:
+ # type: string; type of change for this bug, either 'created' if this bug
+ # was created or 'dep' if it was added as a dependent/blocker
+ # id: integer; the ID of the bug
+ # mailrecipients: hash; contains the BugMail recipients, for details on
+ # this contents, see template bug/process/bugmail.html.tmpl
+ #
+ # bug: object; Bugzilla::Bug object of the bug that was created (used in
+ # template bug/edit.html.tmpl
+ # bug_list: array of integers; storted bug list (used in template
+ # bug/navigate.html.tmpl)
+ #%]
+
[% PROCESS global/variables.none.tmpl %]
[% PROCESS global/header.html.tmpl
type = item.type
id = item.id
mail = item.mail
+ mailrecipients = item.mailrecipients
%]
[% END %]