mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Import
- Orphaned UDAs now survive import.
This commit is contained in:
parent
7eebfba1ef
commit
416cb40e3d
2 changed files with 5 additions and 3 deletions
|
@ -154,6 +154,7 @@ int CmdImport::execute (std::string& output)
|
|||
// mask
|
||||
// imask
|
||||
// parent
|
||||
// UDA orphans
|
||||
else
|
||||
{
|
||||
// Annotations are an array of JSON objects with 'entry' and
|
||||
|
@ -194,8 +195,11 @@ int CmdImport::execute (std::string& output)
|
|||
task.set (i->first, unquoteText (i->second->dump ()));
|
||||
}
|
||||
|
||||
// UDA Orphan - must be preserved.
|
||||
else
|
||||
throw format (STRING_CMD_IMPORT_BAD_ATT, i->first);
|
||||
{
|
||||
task.set (i->first, unquoteText (i->second->dump ()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue