mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-03 16:17:19 +02:00
Simulate the tags
DOM property
This refers to the deprecated "tags" property of tasks. This property usually still exists, for compatibility with older versions, but should not be relied on anymore.
This commit is contained in:
parent
d914c15faa
commit
6ab7b3589e
1 changed files with 7 additions and 0 deletions
|
@ -286,6 +286,13 @@ bool getDOM(const std::string& name, const Task* task, Variant& value) {
|
|||
return true;
|
||||
}
|
||||
|
||||
// The "tags" property is deprecated, but it is documented as part of the DOM, so simulate it.
|
||||
if (size == 1 && canonical == "tags") {
|
||||
auto tags = ref->getTags();
|
||||
value = Variant(join(",", tags));
|
||||
return true;
|
||||
}
|
||||
|
||||
Column* column = Context::getContext().columns[canonical];
|
||||
|
||||
if (size == 1 && column) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue