mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdDuplicate
- Converted from A3 modifications to Task::modify.
This commit is contained in:
parent
58bf88f425
commit
03d4aacc5c
1 changed files with 1 additions and 4 deletions
|
@ -62,9 +62,6 @@ int CmdDuplicate::execute (std::string& output)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply the command line modifications to the new task.
|
|
||||||
A3 modifications = context.a3.extract_modifications ();
|
|
||||||
|
|
||||||
// Accumulated project change notifications.
|
// Accumulated project change notifications.
|
||||||
std::map <std::string, std::string> projectChanges;
|
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.
|
dup.setStatus (Task::pending); // Does not inherit status.
|
||||||
// Must occur after Task::recurring check.
|
// Must occur after Task::recurring check.
|
||||||
|
|
||||||
modify_task_annotate (dup, modifications);
|
dup.modify (Task::modAnnotate);
|
||||||
|
|
||||||
if (permission (dup,
|
if (permission (dup,
|
||||||
format (STRING_CMD_DUPLICATE_CONFIRM,
|
format (STRING_CMD_DUPLICATE_CONFIRM,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue