use the existing (but misnamed) orphans method
This commit is contained in:
committed by
Tomas Babej
parent
e768e2c100
commit
e3dd91d45e
@@ -324,7 +324,7 @@ std::string CmdEdit::formatTask (Task task, const std::string& dateformat)
|
||||
}
|
||||
|
||||
// UDA orphans
|
||||
auto orphans = task.getUDAOrphanUUIDs ();
|
||||
auto orphans = task.getUDAOrphans ();
|
||||
if (orphans.size ())
|
||||
{
|
||||
before << "# User Defined Attribute Orphans\n";
|
||||
|
||||
@@ -134,12 +134,8 @@ int CmdUDAs::execute (std::string& output)
|
||||
std::map <std::string, int> orphans;
|
||||
for (auto& i : filtered)
|
||||
{
|
||||
for (auto& att : i.data_removeme ())
|
||||
if (! Task::isAnnotationAttr (att.first) &&
|
||||
! Task::isTagAttr (att.first) &&
|
||||
! Task::isDepAttr (att.first) &&
|
||||
Context::getContext ().columns.find (att.first) == Context::getContext ().columns.end ())
|
||||
orphans[att.first]++;
|
||||
for (auto& att : i.getUDAOrphans ())
|
||||
orphans[att]++;
|
||||
}
|
||||
|
||||
if (orphans.size ())
|
||||
|
||||
Reference in New Issue
Block a user