diff options
author | Frank Becker | 2013-03-11 19:32:56 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2013-05-08 19:58:56 +0000 |
commit | ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7 (patch) | |
tree | 4cbb372dbe7f6a6fa8a71a9de0859a29a31b59ef /org.eclipse.mylyn.bugzilla.core | |
parent | a3474b6cc09d546b76aee19a21b003d54f8dd782 (diff) | |
download | org.eclipse.mylyn.tasks-ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7.tar.gz org.eclipse.mylyn.tasks-ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7.tar.xz org.eclipse.mylyn.tasks-ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7.zip |
391137: Please change the default values when creating a new bug using
Help > Report Bug or Enhancement
Change-Id: I2029a5a8f2cf92e9050749460f1843c988758e9a
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=391137
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java | 31 |
1 files changed, 6 insertions, 25 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 1721edb59..b50cca6da 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 @@ -465,29 +465,6 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler { component = initializationData.getComponent(); } - if (component == null - && repositoryConfiguration.getProductOptionValues(BugzillaAttribute.COMPONENT, product).size() > 0) { - component = repositoryConfiguration.getProductOptionValues(BugzillaAttribute.COMPONENT, product) - .get(0); - } - if (component == null) { - if (repositoryConfiguration.getOptionValues(BugzillaAttribute.PRODUCT).size() > 0) { - product = repositoryConfiguration.getOptionValues(BugzillaAttribute.PRODUCT).get(0); - } - if (product == null) { - return false; - } - if (repositoryConfiguration.getProductOptionValues(BugzillaAttribute.COMPONENT, product).size() > 0) { - component = repositoryConfiguration.getProductOptionValues(BugzillaAttribute.COMPONENT, product) - .get(0); - } else { - return false; - } - if (component == null) { - return false; - } - } - initializeNewTaskDataAttributes(repositoryConfiguration, taskData, product, component, monitor); if (connector != null) { connector.setPlatformDefaultsOrGuess(repository, taskData); @@ -608,10 +585,14 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler { if (defaultMilestone != null) { attributeTargetMilestone.setValue(defaultMilestone); } else { - attributeTargetMilestone.setValue(optionValues.get(0)); + if (optionValues.contains("---")) { //$NON-NLS-1$ + attributeTargetMilestone.setValue("---"); //$NON-NLS-1$ + } } } else { - attributeTargetMilestone.setValue(optionValues.get(0)); + if (optionValues.contains("---")) { //$NON-NLS-1$ + attributeTargetMilestone.setValue("---"); //$NON-NLS-1$ + } } } } |