commit | 17f790514fec5c8828046261c70d790787022a06 | [log] [tgz] |
---|---|---|
author | Colby Ranger <cranger@google.com> | Tue May 22 16:04:46 2012 -0700 |
committer | Colby Ranger <cranger@google.com> | Tue May 22 16:10:50 2012 -0700 |
tree | 6cc1f0c5325b6b357e9e588a6dba8f50b38e2af6 | |
parent | 5cc8f6647b2b893653eb68915a9f6ed08a1ee5fc [diff] |
Fix generation of owner group in GroupDetail. Set the GroupDetail.ownerGroup to the AccountGroup.ownerGroupUUID instead of the groupUUID. Change-Id: I2d9b3fe19d5fd495956bdc690e462445fe87c652
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/account/GroupDetailFactory.java b/gerrit-server/src/main/java/com/google/gerrit/server/account/GroupDetailFactory.java index 6bb31b3..2d455e9 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/account/GroupDetailFactory.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/account/GroupDetailFactory.java
@@ -67,7 +67,7 @@ final AccountGroup group = control.getAccountGroup(); final GroupDetail detail = new GroupDetail(); detail.setGroup(group); - AccountGroup ownerGroup = groupCache.get(group.getGroupUUID()); + AccountGroup ownerGroup = groupCache.get(group.getOwnerGroupUUID()); if (ownerGroup != null) { detail.setOwnerGroup(GroupReference.forGroup(ownerGroup)); }