Bug 91009 - Changing store params for send_result data

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1719 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
akrasilnikov 2013-07-12 12:19:41 +00:00
parent 90833366b1
commit 07f4777c4e
3 changed files with 2 additions and 6 deletions

View File

@ -153,7 +153,7 @@ sub SendFlag {
$recipient = $flag_data->{params}->{to};
}
push (@sent,$recipient);
push (@sent, $recipient);
return {'sent' => \@sent, 'excluded' => \@excluded};
}

View File

@ -1044,7 +1044,7 @@ sub notify {
my $lang = $recipients{$to} ?
$recipients{$to}->settings->{'lang'}->{'value'} : $default_lang;
Bugzilla->add_mail_result({type => 'flag', notify_data => $vars);
Bugzilla->add_mail_result({type => 'flag', notify_data => {lang => $lang, params => $vars}});
}
}

View File

@ -734,10 +734,6 @@ foreach my $msg (@msgs) {
#Add flag notify to send_result
my $notify = Bugzilla->get_mail_result();
use Data::Dumper;
die(Dumper($notify));
push @$send_results, @$notify;
send_results($_) for @$send_results;