Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 256045 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPeoplePart.java (+4 lines)
Lines 66-71 Link Here
66
		peopleComposite.setLayout(layout);
66
		peopleComposite.setLayout(layout);
67
67
68
		addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_ASSIGNED));
68
		addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_ASSIGNED));
69
		TaskAttribute assignee = getTaskData().getRoot().getAttribute(BugzillaAttribute.SET_DEFAULT_ASSIGNEE.getKey());
70
		if (assignee != null) {
71
			addAttribute(peopleComposite, toolkit, assignee);
72
		}
69
		addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_REPORTER));
73
		addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(TaskAttribute.USER_REPORTER));
70
		addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(
74
		addAttribute(peopleComposite, toolkit, getTaskData().getRoot().getMappedAttribute(
71
				BugzillaAttribute.QA_CONTACT.getKey()));
75
				BugzillaAttribute.QA_CONTACT.getKey()));
(-)src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java (-6 / +24 lines)
Lines 478-489 Link Here
478
		if (bugzillaVersion == null) {
478
		if (bugzillaVersion == null) {
479
			bugzillaVersion = "2.18";
479
			bugzillaVersion = "2.18";
480
		}
480
		}
481
		if (bugzillaVersion.compareTo("3.1") < 0
481
		if (status == BUGZILLA_REPORT_STATUS.NEW || status == BUGZILLA_REPORT_STATUS.ASSIGNED
482
				&& (status == BUGZILLA_REPORT_STATUS.NEW || status == BUGZILLA_REPORT_STATUS.ASSIGNED
482
				|| status == BUGZILLA_REPORT_STATUS.REOPENED || status == BUGZILLA_REPORT_STATUS.UNCONFIRMED) {
483
						|| status == BUGZILLA_REPORT_STATUS.REOPENED || status == BUGZILLA_REPORT_STATUS.UNCONFIRMED)) {
483
			if (bugzillaVersion.compareTo("3.1") < 0) {
484
			// old bugzilla workflow is used
484
				// old bugzilla workflow is used
485
			addOperation(bugReport, BugzillaOperation.reassign);
485
				addOperation(bugReport, BugzillaOperation.reassign);
486
			addOperation(bugReport, BugzillaOperation.reassignbycomponent);
486
				addOperation(bugReport, BugzillaOperation.reassignbycomponent);
487
			} else {
488
				BugzillaAttribute key = BugzillaAttribute.SET_DEFAULT_ASSIGNEE;
489
				TaskAttribute operationAttribute = bugReport.getRoot().getAttribute(key.getKey());
490
				if (operationAttribute == null) {
491
					operationAttribute = bugReport.getRoot().createAttribute(key.getKey());
492
					operationAttribute.getMetaData()
493
							.defaults()
494
							.setReadOnly(key.isReadOnly())
495
							.setKind(key.getKind())
496
							.setLabel(key.toString())
497
							.setType(key.getType());
498
					operationAttribute.setValue("0");
499
				}
500
				operationAttribute = bugReport.getRoot().getMappedAttribute(TaskAttribute.USER_ASSIGNED);
501
				if (operationAttribute != null) {
502
					operationAttribute.getMetaData().setReadOnly(false);
503
				}
504
			}
487
		}
505
		}
488
	}
506
	}
489
507
(-)src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttribute.java (-2 / +1 lines)
Lines 114-121 Link Here
114
114
115
	REMAINING_TIME("Remaining:", "remaining_time", TaskAttribute.TYPE_SHORT_TEXT, true, false),
115
	REMAINING_TIME("Remaining:", "remaining_time", TaskAttribute.TYPE_SHORT_TEXT, true, false),
116
116
117
	SET_DEFAULT_ASSIGNEE("Reassign to default assignee", "set_default_assignee", TaskAttribute.TYPE_OPERATION, false,
117
	SET_DEFAULT_ASSIGNEE("Reset assignee to default", "set_default_assignee", TaskAttribute.TYPE_BOOLEAN, true, false),
118
			false),
119
118
120
	SHORT_DESC("Summary:", "short_desc", TaskAttribute.TYPE_SHORT_RICH_TEXT, true, false),
119
	SHORT_DESC("Summary:", "short_desc", TaskAttribute.TYPE_SHORT_RICH_TEXT, true, false),
121
120

Return to bug 256045