diff options
author | Frank Becker | 2016-05-27 19:07:14 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2016-06-15 18:41:44 +0000 |
commit | 7b6c8404b6eaa24858337cf04ba4d05aa0f4cb3b (patch) | |
tree | 4def5e386f47c812562dc167eda9e8a8741afbdd /connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core | |
parent | 58364eba5fc175eb77d98c96f30976bd60b22b39 (diff) | |
download | org.eclipse.mylyn.tasks-7b6c8404b6eaa24858337cf04ba4d05aa0f4cb3b.tar.gz org.eclipse.mylyn.tasks-7b6c8404b6eaa24858337cf04ba4d05aa0f4cb3b.tar.xz org.eclipse.mylyn.tasks-7b6c8404b6eaa24858337cf04ba4d05aa0f4cb3b.zip |
494233: Release of Bugzilla 5.0.3, 4.4.12, and 5.1.1
Change-Id: Ib475e0653404b403db54cb27e391945ca7618caf
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=494233
Diffstat (limited to 'connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core')
-rw-r--r-- | connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestGetTaskData.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestGetTaskData.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestGetTaskData.java index d6d2ecc04..c65a69cb7 100644 --- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestGetTaskData.java +++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestGetTaskData.java @@ -126,12 +126,19 @@ public class BugzillaRestGetTaskData extends BugzillaRestAuthenticatedGetRequest String attributeId = BugzillaRestTaskSchema.getAttributeNameFromFieldName(entry.getKey()); if (entry.getKey().equals("assigned_to_detail")) { //$NON-NLS-1$ TaskAttribute attribute = taskData.getRoot().getAttribute(taskSchema.ASSIGNED_TO.getKey()); - JsonElement value = entry.getValue().getAsJsonObject().get("email"); //$NON-NLS-1$//.get("real_name"); if (attribute != null) { - attribute.setValue(value.getAsString()); + JsonElement value = entry.getValue().getAsJsonObject().get("email"); //$NON-NLS-1$ + if (value != null) { + attribute.setValue(value.getAsString()); + } else { + value = entry.getValue().getAsJsonObject().get("name"); //$NON-NLS-1$ + if (value != null) { + attribute.setValue(value.getAsString()); + } + } } continue; - } else if (entry.getKey().equals("last_change_time")) { + } else if (entry.getKey().equals("last_change_time")) { //$NON-NLS-1$ TaskAttribute attribute = taskData.getRoot() .getAttribute(taskSchema.DATE_MODIFICATION.getKey()); JsonElement value = entry.getValue(); //.get("real_name"); |