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:
Dustin J. Mitchell 2025-05-11 17:25:00 -04:00
parent d914c15faa
commit 6ab7b3589e
No known key found for this signature in database

View file

@ -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) {