Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java3
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java9
2 files changed, 7 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
index 5224d00d1..80dc4abd2 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java
@@ -380,6 +380,9 @@ public class TracTaskDataHandler extends AbstractTaskDataHandler {
attr.setValue(field.getDefaultValue());
}
}
+ if (ATTRIBUTE_BLOCKED_BY.equals(field.getName()) || ATTRIBUTE_BLOCKING.equals(field.getName())) {
+ metaData.setType(TaskAttribute.TYPE_TASK_DEPENDENCY);
+ }
return attr;
}
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java
index 67dbd65d4..bc44ec061 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java
@@ -351,11 +351,10 @@ public class TracTaskDataHandlerTest extends TestCase {
assertEquals("", subTaskMapper.getSummary());
assertEquals("", subTaskMapper.getDescription());
assertEquals(component, subTaskMapper.getComponent());
- assertEquals(parentTaskData.getTaskId(), subTaskData.getRoot().getMappedAttribute(
- TracTaskDataHandler.ATTRIBUTE_BLOCKING).getValue());
- assertEquals("", parentTaskData.getRoot()
- .getMappedAttribute(TracTaskDataHandler.ATTRIBUTE_BLOCKED_BY)
- .getValue());
+ TaskAttribute attribute = subTaskData.getRoot().getMappedAttribute(TracTaskDataHandler.ATTRIBUTE_BLOCKING);
+ assertEquals(parentTaskData.getTaskId(), attribute.getValue());
+ attribute = parentTaskData.getRoot().getMappedAttribute(TracTaskDataHandler.ATTRIBUTE_BLOCKED_BY);
+ assertEquals("", attribute.getValue());
}
public void testGetSubTaskIds() throws Exception {

Back to the top