Disallow searching for label:SUBM
This leaks an internal implementation detail; SUBM is not a real label. Strictly speaking we should bump the schema version for this change, but considering how corner of a case this is, that is far more effort than it's worth. Change-Id: I0cba6d3dc661803a22308fc91cc758faa90df4eb
This commit is contained in:
@@ -264,7 +264,7 @@ public class ChangeField {
|
||||
Set<String> allApprovals = Sets.newHashSet();
|
||||
Set<String> distinctApprovals = Sets.newHashSet();
|
||||
for (PatchSetApproval a : input.currentApprovals()) {
|
||||
if (a.getValue() != 0) {
|
||||
if (a.getValue() != 0 && !a.isSubmit()) {
|
||||
allApprovals.add(formatLabel(a.getLabel(), a.getValue(),
|
||||
a.getAccountId()));
|
||||
distinctApprovals.add(formatLabel(a.getLabel(), a.getValue()));
|
||||
|
Reference in New Issue
Block a user