GWT UI: Send assignee input as json

Sending the assignee as plain text only worked due to the
@DefaultInput annotation on the assignee field in AssigneeInput.

Change-Id: I185b365f66faea6955115206318b1d7f0997b8ef
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-11-30 11:04:09 +01:00
parent 9875c00ed9
commit 86ad1ff86c

View File

@@ -122,7 +122,7 @@ public class ChangeApi {
AsyncCallback<AccountInfo> cb) {
AssigneeInput input = AssigneeInput.create();
input.assignee(user);
change(id).view("assignee").put(user, cb);
change(id).view("assignee").put(input, cb);
}
public static RestApi comments(int id) {