diff options
author | Frank Becker | 2013-03-23 18:14:06 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2013-04-06 11:41:02 +0000 |
commit | 4e30bcc15921fc1c84b9e9b964f627d56615d44a (patch) | |
tree | b7fc41b632e2262af03ef792cd04349e4d73b6c6 /org.eclipse.mylyn.bugzilla.ui | |
parent | afcd476961ed96d11a125d7bc9f57d13df9db166 (diff) | |
download | org.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.java | 5 |
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$ |