- Orphaned UDAs now survive import.
This commit is contained in:
Paul Beckingham 2012-07-04 14:29:12 -04:00
parent 7eebfba1ef
commit 416cb40e3d
2 changed files with 5 additions and 3 deletions

View file

@ -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 ()));
}
}
}