diff options
author | David King | 2014-02-12 00:17:22 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2014-02-12 20:02:21 +0000 |
commit | 36670c42232938eb07abff1bab488a4bcaa7a3f8 (patch) | |
tree | fb3960a7531f80248933a1f4a649672cd9622eb4 /org.eclipse.mylyn.bugzilla.core | |
parent | 2e0518f8b3c7ab9906528e3c4f00459851788c58 (diff) | |
download | org.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')
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(); |