We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6633449 commit 429b770Copy full SHA for 429b770
Bugzilla/WebService/Bug.pm
@@ -1233,17 +1233,9 @@ sub add_comment {
1233
$bug->set_all({comment_tags => $params->{comment_tags}})
1234
if defined $params->{comment_tags};
1235
1236
- # Capture the call to bug->update (which creates the new comment) in
1237
- # a transaction so we're sure to get the correct comment_id.
1238
-
1239
- my $dbh = Bugzilla->dbh;
1240
- $dbh->bz_start_transaction();
1241
1242
$bug->update();
1243
1244
- my $new_comment_id = $dbh->bz_last_key('longdescs', 'comment_id');
1245
1246
- $dbh->bz_commit_transaction();
+ my $new_comment_id = Bugzilla->dbh->bz_last_key('longdescs', 'comment_id');
1247
1248
# Send mail.
1249
Bugzilla::BugMail::Send($bug->bug_id, {changer => Bugzilla->user});
0 commit comments