diff options
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java index d36957602..af2d235a7 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java @@ -129,8 +129,6 @@ public class BugzillaXmlRpcClient extends CommonXmlRpcClient { public static final String XML_RESPONSE_BUGS = "bugs"; //$NON-NLS-1$ - private static final String Date = null; - /* * Fields * @@ -860,7 +858,7 @@ public class BugzillaXmlRpcClient extends CommonXmlRpcClient { attachmentMapper.setPatch(is_patch.equals("1")); //$NON-NLS-1$ attachmentMapper.applyTo(attachmentAttribute); - addFlags(taskData, attachment.get("flags"), attachmentAttribute); + addFlags(taskData, attachment.get("flags"), attachmentAttribute); //$NON-NLS-1$ } } } @@ -888,7 +886,7 @@ public class BugzillaXmlRpcClient extends CommonXmlRpcClient { idAttribute.setValue(commentID.toString()); if (useIsPrivate) { TaskAttribute isprivateAttribute = description.createAttribute(IBugzillaConstants.BUGZILLA_DESCRIPTION_IS_PRIVATE); - isprivateAttribute.setValue(is_private ? "1" : "0"); + isprivateAttribute.setValue(is_private ? "1" : "0"); //$NON-NLS-1$ //$NON-NLS-2$ } } commentNum++; @@ -1082,7 +1080,7 @@ public class BugzillaXmlRpcClient extends CommonXmlRpcClient { } for (TaskAttribute attachment : taskAttachments) { BugzillaAttachmentMapper attachmentMapper = BugzillaAttachmentMapper.createFrom(attachment); - attachmentMapper.setUrl(repURL.substring(0, repURL.indexOf("/xmlrpc.cgi")) + attachmentMapper.setUrl(repURL.substring(0, repURL.indexOf("/xmlrpc.cgi")) //$NON-NLS-1$ + IBugzillaConstants.URL_GET_ATTACHMENT_SUFFIX + attachmentMapper.getAttachmentId()); attachmentMapper.applyTo(attachment); } |