Fix search by codereview status

Change-Id: I864dc6eca27ed9bca7004ef9bc5b5536737cc6ec
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Bug: issue 1001
This commit is contained in:
Edwin Kempin 2011-06-06 10:47:25 +02:00
parent 55e9025582
commit 3cd9de924e
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class LabelPredicate extends OperatorPredicate<ChangeData> {
@Override
public boolean match(final ChangeData object) throws OrmException {
for (PatchSetApproval p : object.currentApprovals(dbProvider)) {
if (p.getCategoryId().equals(category)) {
if (p.getCategoryId().equals(category.getId())) {
int psVal = p.getValue();
if (test.match(psVal, expVal)) {
// Double check the value is still permitted for the user.