Bug 71288

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1025 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2010-10-28 12:59:16 +00:00
parent 5c7a12937b
commit c2edb979d6
1 changed files with 5 additions and 9 deletions

View File

@ -583,19 +583,15 @@ sub insert {
$vars->{'header_done'} = 1;
$vars->{'contenttypemethod'} = $cgi->param('contenttypemethod');
my $recipients = { 'changer' => $user->login, 'owner' => $owner };
my $silent = $vars->{commentsilent} = $cgi->param('commentsilent') ? 1 : 0;
my $sent_bugmail = Bugzilla::BugMail::Send($bugid, $recipients, $silent);
my $send_results = send_results({
mailrecipients => { 'changer' => $user->login, 'owner' => $owner },
bug_id => $bugid,
});
# Operation result to save into session (CustIS Bug 64562)
my $session_data = {
title => "Attachment ".$attachment->id." added to ".template_var('terms')->{Bug}." ".$attachment->bug_id,
sent => [ {
commentsilent => $silent,
sent_bugmail => $sent_bugmail,
mailrecipients => $recipients,
id => $bugid,
} ],
sent => [$send_results],
sent_attrs => {
contenttypemethod => $vars->{contenttypemethod},
added_attachment => {