Merge "Merge branch 'stable-2.6' into stable-2.7" into stable-2.7

This commit is contained in:
Dave Borowitz
2013-09-18 17:40:57 +00:00
committed by Gerrit Code Review
3 changed files with 5 additions and 7 deletions

View File

@@ -112,9 +112,7 @@ public class DeleteDraftPatchSet implements Callable<ReviewResult> {
}
if (change.currentPatchSetId().equals(patchSetId)) {
try {
PatchSet.Id id =
new PatchSet.Id(patchSetId.getParentKey(), patchSetId.get() - 1);
change.setCurrentPatchSet(patchSetInfoFactory.get(db, id));
change.setCurrentPatchSet(patchSetInfoFactory.get(db, highestId));
} catch (PatchSetInfoNotAvailableException e) {
throw new NoSuchChangeException(changeId);
}