diff options
author | Sam Davis | 2015-11-17 22:22:52 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2015-11-19 23:31:11 +0000 |
commit | cc0295a24e13d01c25b764ca6a7c0302f97781aa (patch) | |
tree | 276612df7b45ab49af82ab2c1e7a787ab2326831 /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks | |
parent | caeb07755d6648012df20b98664dc11a3101d7e5 (diff) | |
download | org.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/eclipse/mylyn/tasks')
-rw-r--r-- | org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/data/TaskAttributeMapper.java | 2 |
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); } |