Merge branch 'stable-2.11'
* stable-2.11: Release notes for Gerrit 2.11.4 Fix link in 2.10.7 release notes Set version to 2.11.4 Do not double decode the login URL token ReceiveCommits: Fire add comment hook when approvals provided ReceiveCommits: Include approvals from magic branch in change message Update no-new-change error message documentation Release notes for Gerrit 2.10.7 Fix: User could get around ref-update hook through gerrit-created commits Set version to 2.10.7 PatchListLoader: Synchronize MyersDiff and HistogramDiff invocations Change-Id: Id28f13876f16bb5194f7b078860b95004dba369d
This commit is contained in:
@@ -341,6 +341,12 @@ public class ChangeInserter extends BatchUpdate.InsertChangeOp {
|
||||
accountCache.get(change.getOwner()).getAccount(),
|
||||
hashtags, null, hashtags, db);
|
||||
}
|
||||
|
||||
if (approvals != null && !approvals.isEmpty()) {
|
||||
hooks.doCommentAddedHook(change,
|
||||
((IdentifiedUser) refControl.getCurrentUser()).getAccount(),
|
||||
patchSet, null, approvals, db);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user