Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-11-29 19:55:53 +0000
committerfbecker2010-11-29 19:55:53 +0000
commit30077d60ecd314f4f957ced682830d5cfde388b7 (patch)
treea92606922f50c237d9aa9feae41b89de09b1370e /org.eclipse.mylyn.bugzilla.ui
parent27c93bf9056f8ba54c45f6ce2659eee533b61d27 (diff)
downloadorg.eclipse.mylyn.tasks-30077d60ecd314f4f957ced682830d5cfde388b7.tar.gz
org.eclipse.mylyn.tasks-30077d60ecd314f4f957ced682830d5cfde388b7.tar.xz
org.eclipse.mylyn.tasks-30077d60ecd314f4f957ced682830d5cfde388b7.zip
ASSIGNED - bug 329164: Bugzilla 4.0 - New Default Status Workflow
https://bugs.eclipse.org/bugs/show_bug.cgi?id=329164
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.java17
1 files changed, 16 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 d0f95fe45..d0f646cce 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
@@ -25,9 +25,11 @@ import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCustomField;
+import org.eclipse.mylyn.internal.bugzilla.core.BugzillaOperation;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryResponse;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler;
+import org.eclipse.mylyn.internal.bugzilla.core.BugzillaVersion;
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfiguration;
import org.eclipse.mylyn.internal.bugzilla.ui.BugzillaUiPlugin;
@@ -398,7 +400,20 @@ public class BugzillaTaskEditorPage extends AbstractTaskEditorPage {
attributeDefaultAssignee.setValue("1"); //$NON-NLS-1$
refresh(attributeDefaultAssignee);
}
-
+ if (taskAttribute.getTaskData().isNew()) {
+ BugzillaVersion bugzillaVersion = repositoryConfiguration.getInstallVersion();
+ if (bugzillaVersion == null) {
+ bugzillaVersion = BugzillaVersion.MIN_VERSION;
+ }
+ if (bugzillaVersion.compareMajorMinorOnly(BugzillaVersion.BUGZILLA_4_0) >= 0) {
+ AbstractTaskEditorPart part = getPart(ID_PART_ACTIONS);
+ Boolean unconfirmedAllowed = repositoryConfiguration.getUnconfirmedAllowed(taskAttribute.getValue());
+ TaskAttribute unconfirmedAttribute = taskAttribute.getTaskData()
+ .getRoot()
+ .getAttribute(
+ TaskAttribute.PREFIX_OPERATION + BugzillaOperation.unconfirmed.toString());
+ }
+ }
/*
* add confirm_product_change to avoid verification page on submit
*/

Back to the top