CmdDuplicate

- Converted from A3 modifications to Task::modify.
This commit is contained in:
Paul Beckingham 2014-05-25 17:32:42 -04:00
parent 58bf88f425
commit 03d4aacc5c

View file

@ -62,9 +62,6 @@ int CmdDuplicate::execute (std::string& output)
return 1;
}
// Apply the command line modifications to the new task.
A3 modifications = context.a3.extract_modifications ();
// Accumulated project change notifications.
std::map <std::string, std::string> projectChanges;
@ -102,7 +99,7 @@ int CmdDuplicate::execute (std::string& output)
dup.setStatus (Task::pending); // Does not inherit status.
// Must occur after Task::recurring check.
modify_task_annotate (dup, modifications);
dup.modify (Task::modAnnotate);
if (permission (dup,
format (STRING_CMD_DUPLICATE_CONFIRM,