Merge branch 'stable-2.12'
* stable-2.12: Documentation: Fix anchor for gitweb.urlEncode Fix gitweb backlinks AbstractSubmit: Refactor ref-updated event tests to be more precise ChangeData: Prevent possible NPE when loading current patch set Do not keep reference to non-singleton ListTags in singleton TagsCollection Bazel: Fix CheckReturnValue error detected by ErrorProne Submit: Don't assume the "Submitted Together" Tab exists. Submit: Give another error message when the change itself has problems Submit: Move check for enabling button after rechecking mergeability Bazel: Fix CheckReturnValue error detected by ErrorProne ACL screen: Show error when group to be added is not found Bazel: Fix MisusedWeekYear error detected by ErrorProne Submit: fix typo in user message AbstractSubmit: Add stricter assertions about ref-updated event content Eclipse: Update compiler warnings settings from Eclipse MARS.2 Upgrade replication plugin to latest revision This merge reverts the following commits: AbstractSubmit: Refactor ref-updated event tests to be more precise AbstractSubmit: Add stricter assertions about ref-updated event content because they are related to tests that are currently not working on the master branch. These are reintroduced in later commits that are still under review. Change-Id: Icce7ad25f91ed0f7cae0f2673eff88fd648d9293
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
|
||||
package com.google.gerrit.client.admin;
|
||||
|
||||
import com.google.gerrit.client.ErrorDialog;
|
||||
import com.google.gerrit.client.Gerrit;
|
||||
import com.google.gerrit.client.groups.GroupMap;
|
||||
import com.google.gerrit.client.rpc.GerritCallback;
|
||||
import com.google.gerrit.common.data.AccessSection;
|
||||
@@ -219,7 +221,7 @@ public class PermissionEditor extends Composite implements Editor<Permission>,
|
||||
addStage2.getStyle().setDisplay(Display.NONE);
|
||||
}
|
||||
|
||||
private void addGroup(GroupReference ref) {
|
||||
private void addGroup(final GroupReference ref) {
|
||||
if (ref.getUUID() != null) {
|
||||
if (value.getRule(ref) == null) {
|
||||
PermissionRule newRule = value.getRule(ref, true);
|
||||
@@ -253,6 +255,8 @@ public class PermissionEditor extends Composite implements Editor<Permission>,
|
||||
result.values().get(0).name()));
|
||||
} else {
|
||||
groupToAdd.setFocus(true);
|
||||
new ErrorDialog(Gerrit.M.noSuchGroupMessage(ref.getName()))
|
||||
.center();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user