Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2013-03-23 18:14:06 +0000
committerGerrit Code Review @ Eclipse.org2013-04-06 11:41:02 +0000
commit4e30bcc15921fc1c84b9e9b964f627d56615d44a (patch)
treeb7fc41b632e2262af03ef792cd04349e4d73b6c6 /org.eclipse.mylyn.bugzilla.ui
parentafcd476961ed96d11a125d7bc9f57d13df9db166 (diff)
downloadorg.eclipse.mylyn.tasks-4e30bcc15921fc1c84b9e9b964f627d56615d44a.tar.gz
org.eclipse.mylyn.tasks-4e30bcc15921fc1c84b9e9b964f627d56615d44a.tar.xz
org.eclipse.mylyn.tasks-4e30bcc15921fc1c84b9e9b964f627d56615d44a.zip
404214: ProductSelectionListener did not use
repositoryConfiguration.getDefaultMilestones Change-Id: I85ade2770c5287f5aabe5b206bafd9118f457f6f Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=404214
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
index 0ed443d9f..92bfd668c 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditorPage.java
@@ -475,7 +475,10 @@ public class BugzillaTaskEditorPage extends AbstractTaskEditorPage {
for (String option : optionValues) {
attributeTargetMilestone.putOption(option, option);
}
- if (optionValues.size() == 1) {
+ String defaultMilestones = repositoryConfiguration.getDefaultMilestones(taskAttribute.getValue());
+ if (defaultMilestones != null) {
+ attributeTargetMilestone.setValue(defaultMilestones);
+ } else if (optionValues.size() == 1) {
attributeTargetMilestone.setValue(optionValues.get(0));
} else {
attributeTargetMilestone.setValue("---"); //$NON-NLS-1$

Back to the top