Merge "Do not automatically add author/committer as reviewer to drafts"

This commit is contained in:
Edwin Kempin
2012-06-14 07:40:44 -07:00
committed by gerrit code review

View File

@@ -124,14 +124,14 @@ public class ApprovalsUtil {
Account.Id authorId = info.getAuthor() != null
? info.getAuthor().getAccount()
: null;
if (authorId != null) {
if (authorId != null && !ps.isDraft()) {
need.add(authorId);
}
Account.Id committerId = info.getCommitter() != null
? info.getCommitter().getAccount()
: null;
if (committerId != null) {
if (committerId != null && !ps.isDraft()) {
need.add(committerId);
}
need.remove(change.getOwner());