|
|
|
@ -661,17 +661,20 @@ public class EditPeopleControlSet extends PopupControlSet {
|
|
|
|
|
task.setValue(Task.DETAILS_DATE, 0L);
|
|
|
|
|
|
|
|
|
|
readTagData(result.getJSONArray("tags"));
|
|
|
|
|
JSONObject assignee = result.getJSONObject("assignee");
|
|
|
|
|
JSONObject assignee = result.getJSONObject("user");
|
|
|
|
|
JsonHelper.readUser(assignee,
|
|
|
|
|
task, Task.USER_ID, Task.USER);
|
|
|
|
|
Flags.set(Flags.ACTFM_SUPPRESS_SYNC);
|
|
|
|
|
taskService.save(task);
|
|
|
|
|
|
|
|
|
|
String assignedName = assignee.optString("name");
|
|
|
|
|
if (TextUtils.isEmpty(assignedName)) {
|
|
|
|
|
assignedName = assignee.optString("email");
|
|
|
|
|
}
|
|
|
|
|
long id = assignee.optLong("id", -2);
|
|
|
|
|
if (!(id == -2 || id == ActFmPreferenceService.userId() || assignedName == null)) {
|
|
|
|
|
if (!(id == -2 || id == ActFmPreferenceService.userId() || TextUtils.isEmpty(assignedName))) {
|
|
|
|
|
saveToast += "\n" +
|
|
|
|
|
activity.getString(R.string.actfm_EPA_assigned_toast, assignedName);
|
|
|
|
|
activity.getString(R.string.actfm_EPA_assigned_toast, assignedName, assignedName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int count = result.optInt("shared", 0);
|
|
|
|
|