Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid King2014-02-12 00:17:22 +0000
committerGerrit Code Review @ Eclipse.org2014-02-12 20:02:21 +0000
commit36670c42232938eb07abff1bab488a4bcaa7a3f8 (patch)
treefb3960a7531f80248933a1f4a649672cd9622eb4 /org.eclipse.mylyn.bugzilla.core
parent2e0518f8b3c7ab9906528e3c4f00459851788c58 (diff)
downloadorg.eclipse.mylyn.tasks-36670c42232938eb07abff1bab488a4bcaa7a3f8.tar.gz
org.eclipse.mylyn.tasks-36670c42232938eb07abff1bab488a4bcaa7a3f8.tar.xz
org.eclipse.mylyn.tasks-36670c42232938eb07abff1bab488a4bcaa7a3f8.zip
427953: bugzilla connector incorrectly categorizes custom
fields of type "Bug ID" as short-text attributes Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=427953 Change-Id: I1e35ece026ab40f5486acf637637c7f345b6b004 Signed-off-by: David King <david.king@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCustomField.java6
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java3
2 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCustomField.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCustomField.java
index d6cca0b68..1d4b555d3 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCustomField.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCustomField.java
@@ -31,7 +31,7 @@ public class BugzillaCustomField implements Serializable {
public static final String CUSTOM_FIELD_PREFIX = "cf_"; //$NON-NLS-1$
public static enum FieldType {
- UNKNOWN, FreeText, DropDown, MultipleSelection, LargeText, DateTime;
+ UNKNOWN, FreeText, DropDown, MultipleSelection, LargeText, DateTime, BugId;
private static int parseInt(String type) {
try {
@@ -54,6 +54,8 @@ public class BugzillaCustomField implements Serializable {
return "Large Text Box"; //$NON-NLS-1$
case 5:
return "Date/Time"; //$NON-NLS-1$
+ case 6:
+ return "Bug ID"; //$NON-NLS-1$
default:
return super.toString();
}
@@ -71,6 +73,8 @@ public class BugzillaCustomField implements Serializable {
return LargeText;
case 5:
return DateTime;
+ case 6:
+ return BugId;
default:
return UNKNOWN;
}
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
index 2fa4a3ed9..6b132c912 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
@@ -631,6 +631,9 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
case DateTime:
atr.getMetaData().setType(TaskAttribute.TYPE_DATETIME);
break;
+ case BugId:
+ atr.getMetaData().setType(TaskAttribute.TYPE_TASK_DEPENDENCY);
+ break;
default:
List<String> options = bugzillaCustomField.getOptions();

Back to the top