Possible fix for unassigned bugs

pull/14/head
Sam Bosley 14 years ago
parent 3e15123360
commit e74d3de73b

@ -292,7 +292,7 @@ public class EditPeopleControlSet extends PopupControlSet {
HashSet<String> emails = new HashSet<String>();
HashMap<String, AssignedToUser> names = new HashMap<String, AssignedToUser>();
if(task.getValue(Task.USER_ID) != 0) {
if(task.getValue(Task.USER_ID) > 0) {
JSONObject user = new JSONObject(task.getValue(Task.USER));
sharedPeople.add(0, user);
}

@ -941,8 +941,11 @@ public final class ActFmSyncService {
long id = user.optLong("id", -2);
if(id == -2) {
model.setValue(idProperty, -1L);
if(userProperty != null)
model.setValue(userProperty, "");
if(userProperty != null) {
JSONObject unassigned = new JSONObject();
unassigned.put("id", -1L);
model.setValue(userProperty, unassigned.toString());
}
} else if (id == ActFmPreferenceService.userId()) {
model.setValue(idProperty, 0L);
if (userProperty != null)

Loading…
Cancel
Save