Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-08-23 20:59:50 +0000
committerfbecker2010-08-23 20:59:50 +0000
commit8c98510ff5c5d40c738eb6e2ff034ff96a688acb (patch)
tree7631c93bd05d40eb908906417235bb3626405860 /org.eclipse.mylyn.bugzilla.core
parentccc4a140a57d513d97f5d695f15e47184d421d15 (diff)
downloadorg.eclipse.mylyn.tasks-8c98510ff5c5d40c738eb6e2ff034ff96a688acb.tar.gz
org.eclipse.mylyn.tasks-8c98510ff5c5d40c738eb6e2ff034ff96a688acb.tar.xz
org.eclipse.mylyn.tasks-8c98510ff5c5d40c738eb6e2ff034ff96a688acb.zip
REOPENED - bug 322680: skip redundant parameters when creating new bugs
https://bugs.eclipse.org/bugs/show_bug.cgi?id=322680
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
index 14397094f..f03a1b34d 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
@@ -26,6 +26,7 @@ import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.commons.net.Policy;
+import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCustomField.FieldType;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.core.RepositoryResponse;
@@ -597,13 +598,17 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler {
}
for (BugzillaCustomField bugzillaCustomField : customFields) {
if (bugzillaCustomField.isEnterBug()) {
+ List<String> options = bugzillaCustomField.getOptions();
+ FieldType fieldType = bugzillaCustomField.getFieldType();
+ if (options.size() < 1
+ && (fieldType.equals(FieldType.DropDown) || fieldType.equals(FieldType.MultipleSelection))) {
+ continue;
+ }
TaskAttribute attribute = taskData.getRoot().createAttribute(bugzillaCustomField.getName());
if (attribute != null) {
attribute.getMetaData().defaults().setLabel(bugzillaCustomField.getDescription());
attribute.getMetaData().setKind(TaskAttribute.KIND_DEFAULT);
- List<String> options = bugzillaCustomField.getOptions();
-
switch (bugzillaCustomField.getFieldType()) {
case FreeText:
attribute.getMetaData().setType(TaskAttribute.TYPE_SHORT_TEXT);

Back to the top