Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskDataHandler.java')
-rw-r--r--connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskDataHandler.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskDataHandler.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskDataHandler.java
index d99ec950e..99769e47d 100644
--- a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskDataHandler.java
+++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/BugzillaRestTaskDataHandler.java
@@ -45,16 +45,24 @@ public class BugzillaRestTaskDataHandler extends AbstractTaskDataHandler {
// fresh from the repository (not locally stored data that may not have
// been migrated).
data.setVersion("0"); //$NON-NLS-1$
- BugzillaRestTaskSchema.getDefault().initialize(data);
+ if (data.isNew()) {
+ BugzillaRestCreateTaskSchema.getDefault().initialize(data);
+ } else {
+ BugzillaRestTaskSchema.getDefault().initialize(data);
+ }
if (initializationData != null) {
connector.getTaskMapping(data).merge(initializationData);
}
+ BugzillaRestConfiguration config = connector.getRepositoryConfiguration(repository);
+ if (config != null) {
+ config.updateInitialTaskData(data);
+ }
return true;
}
@Override
public TaskAttributeMapper getAttributeMapper(TaskRepository repository) {
- return new TaskAttributeMapper(repository);
+ return new BugzillaRestTaskAttributeMapper(repository, connector);
}
}

Back to the top