Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2015-11-17 17:22:52 -0500
committerGerrit Code Review @ Eclipse.org2015-11-19 18:31:11 -0500
commitcc0295a24e13d01c25b764ca6a7c0302f97781aa (patch)
tree276612df7b45ab49af82ab2c1e7a787ab2326831 /org.eclipse.mylyn.tasks.core/src/org
parentcaeb07755d6648012df20b98664dc11a3101d7e5 (diff)
downloadorg.eclipse.mylyn.tasks-cc0295a24e13d01c25b764ca6a7c0302f97781aa.tar.gz
org.eclipse.mylyn.tasks-cc0295a24e13d01c25b764ca6a7c0302f97781aa.tar.xz
org.eclipse.mylyn.tasks-cc0295a24e13d01c25b764ca6a7c0302f97781aa.zip
482429: getValueLabels should fall back to attribute.getOption when
getOptions does not contain a value Change-Id: I3b45ff4be32d9534ea0cf686892b058332024aec Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=482429
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttributeMapper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttributeMapper.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttributeMapper.java
index 05e9d3594..257fe0f92 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttributeMapper.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttributeMapper.java
@@ -258,6 +258,8 @@ public class TaskAttributeMapper {
String option = options.get(value);
if (option != null) {
value = option;
+ } else if (taskAttribute.getOption(value) != null) {
+ value = taskAttribute.getOption(value);
}
result.add(value);
}

Back to the top