DOM: Implement special-cased status handling

This is required for status:pending filters not matching the tasks with
the virutal waiting tag.
This commit is contained in:
Tomas Babej 2021-08-08 09:24:54 -04:00
parent 7d81eadd5a
commit 582bee66e9

View file

@ -330,6 +330,14 @@ bool getDOM (const std::string& name, const Task& task, Variant& value)
return true;
}
// Special handling of status required for virtual waiting status
// implementation
if (ref.data.size () && size == 1 && canonical == "status")
{
value = Variant (ref.statusToText (ref.getStatus ()));
return true;
}
Column* column = Context::getContext ().columns[canonical];
if (ref.data.size () && size == 1 && column)