Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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