Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2009-06-07 14:02:09 +0000
committerfbecker2009-06-07 14:02:09 +0000
commitc12ce18c0c724f0153862d47af2faf814c8f7e65 (patch)
treecb0b1328fd7110aef01647406b7b8455f069d188 /org.eclipse.mylyn.bugzilla.core
parente0c0a59c89a9741425fcf3b57797ecd61c2b8f2d (diff)
downloadorg.eclipse.mylyn.tasks-c12ce18c0c724f0153862d47af2faf814c8f7e65.tar.gz
org.eclipse.mylyn.tasks-c12ce18c0c724f0153862d47af2faf814c8f7e65.tar.xz
org.eclipse.mylyn.tasks-c12ce18c0c724f0153862d47af2faf814c8f7e65.zip
ASSIGNED - bug 276234: keywords should not be copied when creating subtasks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=276234
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
index a4369e81a..ccc99c28d 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
@@ -587,7 +587,11 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler {
subTaskData.getRoot().getMappedAttribute(BugzillaAttribute.DEPENDSON.getKey()).setValue(""); //$NON-NLS-1$
subTaskData.getRoot().getMappedAttribute(TaskAttribute.DESCRIPTION).setValue(""); //$NON-NLS-1$
subTaskData.getRoot().getMappedAttribute(TaskAttribute.SUMMARY).setValue(""); //$NON-NLS-1$
- subTaskData.getRoot().getMappedAttribute(TaskAttribute.KEYWORDS).setValue(""); //$NON-NLS-1$
+ TaskAttribute keywords = subTaskData.getRoot().getMappedAttribute(TaskAttribute.KEYWORDS);
+ if (keywords != null) {
+ // only if the repository has keywords this attribut exists
+ keywords.setValue(""); //$NON-NLS-1$
+ }
subTaskData.getRoot().getAttribute(BugzillaAttribute.BLOCKED.getKey()).setValue(parentTaskData.getTaskId());
TaskAttribute parentAttributeAssigned = parentTaskData.getRoot()
.getMappedAttribute(TaskAttribute.USER_ASSIGNED);

Back to the top