From 5a5062f78e116b926c9ffc9e2a7b3d60d4701343 Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Tue, 5 May 2015 09:32:01 -0700 Subject: [PATCH] QuickApprove: Publish drafts on all revisions Bug: issue 1100 Change-Id: I7c5aeb44c273b1549c93270980e80444de18fc08 --- .../main/java/com/google/gerrit/client/change/QuickApprove.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/QuickApprove.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/QuickApprove.java index 6664909185..8758474c31 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/QuickApprove.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/QuickApprove.java @@ -19,6 +19,7 @@ import com.google.gerrit.client.changes.ChangeApi; import com.google.gerrit.client.changes.ChangeInfo; import com.google.gerrit.client.changes.ChangeInfo.LabelInfo; import com.google.gerrit.client.changes.ReviewInput; +import com.google.gerrit.client.changes.ReviewInput.DraftHandling; import com.google.gerrit.client.rpc.GerritCallback; import com.google.gerrit.client.rpc.Natives; import com.google.gerrit.common.PageLinks; @@ -72,6 +73,7 @@ class QuickApprove extends Button implements ClickHandler { changeId = info.legacy_id(); revision = commit; input = ReviewInput.create(); + input.drafts(DraftHandling.PUBLISH_ALL_REVISIONS); input.label(qName, qValue); replyAction = action; setText(qName + qValueStr);