Remove send_changes (Bugzilla 5.0), use our Bugzilla->send_mail

beta
Vitaliy Filippov 2018-03-21 16:46:32 +03:00
parent 5f396a2d77
commit 3b9ba2b7b5
1 changed files with 5 additions and 6 deletions

View File

@ -661,9 +661,7 @@ sub update {
}
$dbh->bz_commit_transaction();
foreach my $bug (@bugs) {
$bug->send_changes($all_changes{$bug->id});
}
Bugzilla->send_mail;
my %api_name = reverse %{ Bugzilla::Bug::FIELD_MAP() };
# This doesn't normally belong in FIELD_MAP, but we do want to translate
@ -732,7 +730,7 @@ sub create {
$dbh->bz_commit_transaction();
$bug->send_changes();
Bugzilla->send_mail;
return { id => $self->type('int', $bug->bug_id) };
}
@ -837,7 +835,7 @@ sub add_attachment {
$_->bug->update($timestamp) foreach @created;
$dbh->bz_commit_transaction();
$_->send_changes() foreach @bugs;
Bugzilla->send_mail;
my @created_ids = map { $_->id } @created;
@ -950,9 +948,10 @@ sub update_attachment {
# Email users about the change
foreach my $bug (values %bugs) {
$bug->update();
$bug->send_changes();
}
Bugzilla->send_mail;
# Return the information to the user
return { attachments => \@result };
}